image chopping/pasting in ruby

J

Joshua Thomas

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)
 
R

Rajinder Yadav

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 Yadav | 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top