Image chopping/pasting in ruby

I’ve got a little project I want to try. I have a single image 256x256
in size, I want to chop it up in 16x16 blocks and store those in an
array. Then using imagemagicks adaptive_resize to double them then
rebuild the image as it was before. I have NO idea how to do this as
I’ve never touched image manipulation in ruby. Any and all help is
appreciated

(its a terrain file for a game)

On 10-12-24 07:22 PM, Joshua T. wrote:

I’ve got a little project I want to try. I have a single image 256x256
in size, I want to chop it up in 16x16 blocks and store those in an
array. Then using imagemagicks adaptive_resize to double them then
rebuild the image as it was before. I have NO idea how to do this as
I’ve never touched image manipulation in ruby. Any and all help is
appreciated

(its a terrain file for a game)

you will want to checkout rmagick gem


Kind Regards,
Rajinder Y. | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-23-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.3