only save jpg (no e)

This commit is contained in:
Torsten 2023-01-23 18:27:31 +02:00
parent 8057293967
commit c344965bc6

View File

@ -48,6 +48,7 @@ module Merged
original , end_ = io.original_filename.split("/").last.split(".")
magick_image = MiniMagick::Image.read(io)
ending = magick_image.type.downcase
ending = "jpg" if ending == "jpeg"
name = original if( name.blank? )
image = Image.new name: name , type: ending , tags: (tags || "") ,
width: magick_image.width, height: magick_image.height ,