Displaying 1 result from an estimated 1 matches for "img_data".
Did you mean:
i_data
2007 Apr 19
2
invalid geometry string in change_geometry
...ry with an explicit size (''110x'') as
the geometry string:
def make_thumb (the_img)
require ''RMagick''
size = "110x"
debugger if ENV[''RAILS_ENV''] == ''development''
img = Magick::Image.from_blob(the_img.img_data).first
img.change_geometry(''110×'') {|cols, rows, i| i.resize!
(cols,rows) }
# img.change_geometry("110×") {|cols, rows, i| i.resize!
(cols,rows) }
# img.change_geometry("#{size}") {|cols, rows, i| i.resize!
(cols,rows) }
end
... but it all work...