Skip to content

Feature Request: Combine images #283

@adrienne

Description

@adrienne

This is kind of a long shot but it seems possible; it's probably less complicated than watermarking, overall! What I'd like to be able to do is pass Imager an array (or ElementModel collection) of images, with some parameters, and have it crop them all and arrange them in a row or a grid.

My vision is that you'd have something like this:

{% set newImage = craft.imager.transformArray(imageArray, {mode: grid, grid: { gridColumnWidth: 200, gridRowHeight: 300, itemResizeMode: 'crop', gridColumns: 4, gridRows: 'auto', bgColor: '#000000' } } %}

Or something, and it would resize each image individually (to 200 x 300, in the above example) and pour them into a grid with (in the above example) 4 columns and however many rows it needs. If there was any space not filled by images, it'd fill it with a background color or leave it transparent, whatever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions