only save jpg (no e)
This commit is contained in:
parent
8057293967
commit
c344965bc6
@ -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 ,
|
||||
|
Loading…
Reference in New Issue
Block a user