[ActiveStorage] Resize original image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[ActiveStorage] Resize original image

Marcio de Jesus
Hello,

Currently with the ActiveStorage:Variant has the image.variant(resize: '100x100').processed method that creates a version of the image without modifying the original image.

It would be very useful if there was a method to modify the original image.

It's possible and viable?

Thanks all

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

[ActiveStorage] Resize original image

DHH-2
These uploads are considered immutable. If you want to store something else than the original, you should do the transformation on the original and upload the new image.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.