I upload images to the server with paperclip. I scale medium images with the following code:
:medium => "280x100>"
But Also I need to fit the original image filesize to 1Mb. Is there any way to do this with the paperclip functionality?
" But Also I need to fit the original" /> " But Also I need to fit the original" /> " But Also I need to fit the original"/>
I upload images to the server with paperclip. I scale medium images with the following code:
:medium => "280x100>"
But Also I need to fit the original image filesize to 1Mb. Is there any way to do this with the paperclip functionality?
Copyright © 2021 Jogjafile Inc.
There is no such ability at the moment, but you can add validation for file size as described there https://github.com/thoughtbot/paperclip#validations , so it will look like this: