Topic: Gimp + javascript? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31197" title="Pages that link to Topic: Gimp + javascript? (Page 1 of 1)" rel="nofollow" >Topic: Gimp + javascript? <span class="small">(Page 1 of 1)</span>\

 
Lord_Fukutoku
Maniac (V) Inmate

From: San Antonio
Insane since: Jul 2002

posted posted 08-03-2009 06:28

So I'm back to playing around with the Google Maps API and including custom map tiles in place of Google's. Got the basics figured out and can build my map and get my tiles to show up where they should be.

All good so far. The problem is there's going to be maybe thousands of tiles to cut from the main overall image. I haven't done the math yet and the image isn't completed, so I'm not sure just how many images there will be, but it's safe to say it's a lot.

I've found this: http://mapki.com/index.php?title=Automatic_Tile_Cutter
But that's for PS, and from the searching I've done so far, there's not a way to use javascript in Gimp, so it's not as simple as porting that script.

Does anyone know if:
1) there's a way to use javascript in Gimp?
2) it'd be relatively straight-forward to port it to perl to run in Gimp's perl plugin (keeping in mind I've never used perl before... Blasphemy, I know...)?
3) there's a way to use the 'script-fu' plugin in Gimp to do something equivalent to that script (again, I've never used it before either)?

Thanks much for anyone that can point me in the right direction here,
LF

--

Any sufficiently advanced bug is indistinguishable from a feature.

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 08-03-2009 09:42

well, cutting slices from a (huge) image shouldn't be too much scripting anywhere,
you can pretty much straight forward translate that script to either perl or python for
GiMP, it's just a bit tedious.

Guess you could even do it in image magic...

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 08-03-2009 15:46

I'd use ImageMagick.

code:
convert foo.png -crop 100x100 bar.png



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu