Skip to content

Instantly share code, notes, and snippets.

@markmcdonald51
Created June 10, 2010 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markmcdonald51/433518 to your computer and use it in GitHub Desktop.
Save markmcdonald51/433518 to your computer and use it in GitHub Desktop.
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