It is currently Tue Sep 15, 2026 9:58 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: a quick and simple script request
PostPosted: Thu Feb 16, 2012 8:03 pm  (#1) 
Offline
New Member

Joined: Feb 16, 2012
Posts: 3
what I have is a whole bunch of this in a .bmp:
http://i39.tinypic.com/1679kpu.jpg

And what I need is to

select the right half (some pictures are different sizes)
invert the colors
copy it
invert the selection
crop it
create a layer mask
past it
and save as a .png
and end kinda like this http://img707.imageshack.us/img707/3715/maskedimage.png (except cropped)

I have no clue what to look for as far as a script to do this, are there any scripts that could do this (or part of this?)


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: a quick and simple script request
PostPosted: Thu Feb 16, 2012 8:19 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
So, will you be responding to this post or just go off to some other forum as you did after posting your question on the Plug-in Registry?

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: a quick and simple script request
PostPosted: Thu Feb 16, 2012 9:19 pm  (#3) 
Offline
New Member

Joined: Feb 16, 2012
Posts: 3
Oh shi- I misread your post as a straight up conversion from .bmp to .png i'm sorry
where am I supposed to put the .scm file?

Anyway, I'm not good with gimp or scripting so probably a little bit from A, a little bit from B since I have nothing to really offer here.


Top
 Post subject: Re: a quick and simple script request
PostPosted: Fri Feb 17, 2012 11:55 am  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
The file would go in your USERFOLDER/.gimp-2.6/Scripts folder Zibbazabba. :)
Thanks Saulgoode.
I like the script name by the way. :lol

_________________
Image


Top
 Post subject: Re: a quick and simple script request
PostPosted: Fri Feb 17, 2012 2:47 pm  (#5) 
Offline
New Member

Joined: Feb 16, 2012
Posts: 3
Holy hell that works great! and fast too! :tyspin :tyspin :tyspin


Top
 Post subject: Re: a quick and simple script request
PostPosted: Fri Feb 17, 2012 4:21 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
I apologize for the brusqueness of my previous post (I blame the cough syrup) but I'm glad things are working for you. Kudos on providing a good, step-by-step description of what you were doing*; this makes writing such scripts pretty trivial.


* Though I did not follow your step exactly, it was easier to create a mask of the entire layer and then shift it into position than to copy-n-paste.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group