image copy

This commit is contained in:
2023-01-01 11:56:11 +02:00
parent 322a9b64a9
commit 93f6a1924b
5 changed files with 61 additions and 49 deletions

View File

@ -49,9 +49,7 @@ module Merged
image = MiniMagick::Image.new(full_filename)
self.width = image.width
self.height = image.height
file = File.open( full_filename )
self.updated_at = file.birthtime
self.size = (file.size/1024).to_i
self.size = (image.size/1024).to_i
end
def destroy