Fix image type not being set after conversion for convertible image types (#20624)

main
Eugen Rochko 2 years ago committed by GitHub
parent 167d86d21d
commit 5c826c408d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,6 +82,7 @@ class MediaAttachment < ApplicationRecord
IMAGE_CONVERTED_STYLES = { IMAGE_CONVERTED_STYLES = {
original: { original: {
format: 'jpeg', format: 'jpeg',
content_type: 'image/jpeg',
}.merge(IMAGE_STYLES[:original]).freeze, }.merge(IMAGE_STYLES[:original]).freeze,
small: { small: {

Loading…
Cancel
Save