 |
Forums |
Admin Discussion Forums: help Start New Thread
| Message: 96422 |
 |
BY: Isaac Myers (cdburrito) DATE: 2011-05-03 01:05 SUBJECT: Crop results in a filesize of 0 Hi, whenever I use crop on an image, the result has a filesize of 0. What am I doing wrong?
Example:
img_url = "<some image url>"
stream = open(img_url) {|f| f.read }
img = Magick::ImageList.new
img.from_blob(stream)
=> JPEG 1200x1600 1200x1600+0+0 DirectClass 8-bit 193kb
img.filesize
=> 198009
img.crop!(200,200,400,400,true)
=> JPEG 1200x1600=>400x400 DirectClass 8-bit
img.filesize
=> 0
I'm sure I must be missing a step. Thanks!
Isaac | |
Thread View
| Thread |
Author |
Date |
 |
Crop results in a filesize of 0 | Isaac Myers | 2011-05-03 01:05 | |
Post a followup to this message
|
 |