emrekutlu / paperclip-compression

image compression processor for Paperclip
MIT License
72 stars 37 forks source link

"File used by other process" error fix #12

Closed ghost closed 9 years ago

ghost commented 9 years ago

I was receiving "The process cannot access the file because it is being used by another process" error on windows. This fix closes tempfile so jpegtran can write it, reopens just after it. Tempfile.close doesnt unlink file, just releases the handle ( http://ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html )

emrekutlu commented 9 years ago

Thanks @Maciekp. v0.3.10 released.