ruby - How to read a portion of an image using RMagick? -
i'm trying load large image , crop tiles fast , low memory consumption. example way gdal2tiles script http://www.maptiler.org/ it, gdal2tiles doesn't output tiles way want them be. therefore decided develop own version using ruby , rmagick(imagemagick).(gdal2tiles barely uses memory).
what notice when using rmgick need load whole image memory first kinda kills system. there way read portion of image file manipulate , read rest ?? or maybe should in other way or use other libraries.
first thing call descructive methods only. don't call img.crop
img.crop!
, save memory.
but might interested in 1 of alternatives. problem memory describe, unavoidable rmagick. there quite lot of alternatives rmagick reason.
because need simple tasks only, think following libraries usefull you, because extremely optimised, featureset limited.
Comments
Post a Comment