-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Use Active Storage for Picture and File attachments #2968
base: main
Are you sure you want to change the base?
Commits on Nov 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4f9e81 - Browse repository at this point
Copy the full SHA a4f9e81View commit details -
Configuration menu - View commit details
-
Copy full SHA for fefae60 - Browse repository at this point
Copy the full SHA fefae60View commit details -
Add dragonfly to image processing converter
ActiveStorage uses the image_processing gem to process images. This uses a hash to describe the conversion instead of a string
Configuration menu - View commit details
-
Copy full SHA for 7486786 - Browse repository at this point
Copy the full SHA 7486786View commit details -
Configuration menu - View commit details
-
Copy full SHA for aaea3ef - Browse repository at this point
Copy the full SHA aaea3efView commit details -
Configuration menu - View commit details
-
Copy full SHA for effab20 - Browse repository at this point
Copy the full SHA effab20View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbe9155 - Browse repository at this point
Copy the full SHA dbe9155View commit details -
Use custom validations for picture size and format
Instead of using the Dragonfly Model validations we write our own. That way we can use another image attachment library more easily
Configuration menu - View commit details
-
Copy full SHA for da074b5 - Browse repository at this point
Copy the full SHA da074b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62082a7 - Browse repository at this point
Copy the full SHA 62082a7View commit details -
Do not sharpen images by default
The vips image_processing processor sharpens images by default. This disables this behavior.
Configuration menu - View commit details
-
Copy full SHA for 6db7591 - Browse repository at this point
Copy the full SHA 6db7591View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf418bb - Browse repository at this point
Copy the full SHA cf418bbView commit details -
Delegate convertible format check to activestorage
Active storage already knows if a file is convertible
Configuration menu - View commit details
-
Copy full SHA for 4860766 - Browse repository at this point
Copy the full SHA 4860766View commit details -
Eager load attachments in admin pictures controller
This avoids N+1 in the image library
Configuration menu - View commit details
-
Copy full SHA for ac8a7ea - Browse repository at this point
Copy the full SHA ac8a7eaView commit details -
Delegate image_file_* methods to attached file
Using activestorage methods to read the values. Ideally we would cache these values, but active storage asynchronously sets these values and provides no callback we could use.
Configuration menu - View commit details
-
Copy full SHA for 9d3dd69 - Browse repository at this point
Copy the full SHA 9d3dd69View commit details -
Remove custom picture variant classes
Now that we use ActiveStorage we can remove our custom picture variant handling
Configuration menu - View commit details
-
Copy full SHA for ada5507 - Browse repository at this point
Copy the full SHA ada5507View commit details -
Move can_be_cropped_to? into picture_thumbnails
This method is the only one left after the PictureVariant and PictureThumb removal.
Configuration menu - View commit details
-
Copy full SHA for 16a7419 - Browse repository at this point
Copy the full SHA 16a7419View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06e6ee1 - Browse repository at this point
Copy the full SHA 06e6ee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2fb41a - Browse repository at this point
Copy the full SHA a2fb41aView commit details -
Use file mime type for picture by format select
Active storage has the mime type stored not the extension.
Configuration menu - View commit details
-
Copy full SHA for 91446af - Browse repository at this point
Copy the full SHA 91446afView commit details -
Configuration menu - View commit details
-
Copy full SHA for d028c11 - Browse repository at this point
Copy the full SHA d028c11View commit details -
ruby-vips and mini_magick need to be told to ignore the page in order to resize animated gifs.
Configuration menu - View commit details
-
Copy full SHA for 652cea8 - Browse repository at this point
Copy the full SHA 652cea8View commit details -
Before we where not telling active storage that we want a certain format explicitely. We need that for displaying animated PNGs properly.
Configuration menu - View commit details
-
Copy full SHA for fd2835c - Browse repository at this point
Copy the full SHA fd2835cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 950c289 - Browse repository at this point
Copy the full SHA 950c289View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcb1bb7 - Browse repository at this point
Copy the full SHA dcb1bb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 642acb8 - Browse repository at this point
Copy the full SHA 642acb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d34db80 - Browse repository at this point
Copy the full SHA d34db80View commit details -
Use image_file_extension as original format
ActiveStorage expects an extension and not an mime type.
Configuration menu - View commit details
-
Copy full SHA for 6581373 - Browse repository at this point
Copy the full SHA 6581373View commit details -
Allow webp as image format for ActiveStorage
It is only configured by default in unreleased Rails 7.2
Configuration menu - View commit details
-
Copy full SHA for 3a44cef - Browse repository at this point
Copy the full SHA 3a44cefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b2e8f7 - Browse repository at this point
Copy the full SHA 9b2e8f7View commit details