Return to Snippet

Revision: 9135
at October 22, 2008 06:48 by PixelMin

Initial Code

my_file ="image.jpg", "rb") {|f|}
img = my_file )

# Testing: get img width with image_size lib.

img_witdh = img.get_width


Initial URL

Initial Description
If you get "JPEG marker not found!" error when you try to open an image file you must read it in binary mode.

Initial Title
Avoid "JPEG marker not found!" error

Initial Tags
file, error, ruby

Initial Language