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

Create multiple images of different sizes from images uploaded #11

Open
natedrake opened this issue Mar 26, 2017 · 0 comments
Open

Create multiple images of different sizes from images uploaded #11

natedrake opened this issue Mar 26, 2017 · 0 comments

Comments

@natedrake
Copy link
Owner

Creating multiple images of different sizes form images uploaded may be useful, as it can create images for different features. Like keep all profile images the same size as to not look stretched, create a different size photo to display next to comment, or blogs posts, etc..

developers should be able to supply an array with the sizes and the tag_name for that image. E.g.

Image::create('path/to/image.jpg', [
    'very_small'=>'64x64',
    'small'=>'128x128',
    'medium'=>'512x512',
    'large'=>'1024x1024',
    'portrait'=>'512x768'
])'

This would create an image for every entry with a name like image(very_small).jpg, etc.

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

No branches or pull requests

1 participant