Created
June 10, 2010 19:39
-
-
Save markmcdonald51/433518 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey Ben, | |
if you add in the ' -limit memory 1 -limit map 1 ' to your transformation_command method it causes imagemagick to use file space instead of memory space. Now I dont have to buy more ram and it does the same thing! | |
----------------------------------------------------------- | |
"papermill_paperclip_processor.rb" 82L, 3241C written | |
def transformation_command | |
" -limit memory 1 -limit map 1 #{(crop_command ? super.sub(/ -crop \S+/, crop_command) : super)} #{copyright_command} #{watermark_command}".sub(%{-resize "0x" }, "") | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment