cdowdy / bolt-tinypng

Bolt Extension Using TinyPNG API to optimize images
7 stars 2 forks source link

Allow uploading and restricting of uploaded img size #1

Closed cdowdy closed 7 years ago

cdowdy commented 7 years ago

Allow a user to upload an image, optimize this / these images with the tiny/png/jpg api and restrict those to a specific size.

This would allow developers to enter a config setting that would take very big images - say 4000px by 4000px and on the upload resize those proportionally to a specific size. Like 1200px by 1200px. That way if a client or someone else uploaded big images we wouldn't have to worry about sizes or big ass images.