Skip to content

[Request] Get next empty / last used slot #14

@cviebrock

Description

@cviebrock

I'm using numeric slots to keep a gallery of images in a sortable order. It would be nice if I could do something like:

$slot = Imager::getLastSlotUsed($model);
$slot++
$image = Imager::saveFromFile($file, $model, ['slot'=>$slot]);

It might be tricky if you use a combination of strings (e.g. "main_image") and integers for slots, but I'm sure it's doable. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions