Bugs: Browse | Submit New | Admin

[#21184] to_blob doesn´t works on windows 1.2.3

Date:
2008-07-12 15:21
Priority:
3
Submitted By:
John Alexis Guerra Gómez (duto_guerra)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
to_blob doesn´t works on windows 1.2.3

Detailed description
On windows image.to_blob opens the tempfile in text mode, throwing wrong data, I solved it changing the line 86
changing

      File.read @path

with the line

      open(@path,"rb").read()

Works with Minimagick 1.2.3

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
mini_magick.rb Minimagick 1.2.3 to_blob fixed Download

Changes:

Field Old Value Date By
File Added3887: mini_magick.rb2008-07-12 15:21duto_guerra