Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to resize each photo for different sizes ? #159

Open
mastershaig opened this issue Feb 11, 2018 · 1 comment
Open

Is it possible to resize each photo for different sizes ? #159

mastershaig opened this issue Feb 11, 2018 · 1 comment

Comments

@mastershaig
Copy link

I've following issue:
Tried to resize my example_cover.jpg as 500x500 and example_logo.jpg as 400x400 and 200x200. Couldn't find a way to prevent images from resizing useless sizes. I don't want example_cover.jpg to resize uselessly(400x400 and 200x200). Tested template {pattern, output}, but it doesn't help.

@ysugimoto
Copy link
Owner

This project will work in single event to single configuration, so we won't switch its configuration by dealing image filename or someway.

Probably you can do by following approach:

  • Separate to lambda function, one is 500x500, and other is 400x400 and 200x200. and set S3 event of trigger filename like *_cover.jpg and *_logo.jpg
  • Add hook to override configuration here. the ImageData has filename, so you can get filename which is put in S3 and modify configuration dynamically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants