RetouchPRO

Go Back   RetouchPRO > Technique > Photo Retouching
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photo Retouching "Improving" photos, post-production, correction, etc.

A way to delete all alpha channels at once?

Reply
 
Thread Tools
  #1  
Old 03-24-2010, 04:11 AM
flexmanta's Avatar
flexmanta flexmanta is offline
Senior Member
 
Join Date: Dec 2009
Location: Spain
Posts: 339
A way to delete all alpha channels at once?

Hi all.

I am trying to come up with a way to include a command in my flattening action that deletes all alpha channels in a psd document.


The idea is to be able to select a bunch of psd from the bridge and, by the use of the image processor, batch save them all as flattened tiff. That's the easy part. I noticed that not all alpha channels get deleted during flattening and since the image processor doesn't give an option whether to preserve layers or not, I end up with bigger files to upload back to the clients and the size difference is noticeable.

Basically i need a command tho include in my action, that will delete all alpha channels regardless of their names so that i don't have to do it one by one.

Thanks
Reply With Quote top
  #2  
Old 03-24-2010, 04:17 AM
Der_W's Avatar
Der_W Der_W is offline
Senior Member
 
Join Date: Jul 2009
Location: Germany
Posts: 558
Re: A way to delete all alpha channels at once?

With actions alone its not possible, but you could use a script like this:

Quote:
Originally Posted by Save as Channels.jsx
#target photoshop
app.bringToFront();
var theImage = app.activeDocument;
theImage.channels.removeAll();
You can record the script by using "File"-"Scripts"-"Browse" and choosing the Channels.jsx file.
Reply With Quote top
  #3  
Old 03-24-2010, 04:44 AM
flexmanta's Avatar
flexmanta flexmanta is offline
Senior Member
 
Join Date: Dec 2009
Location: Spain
Posts: 339
Re: A way to delete all alpha channels at once?

Amazing, you just saved me a lot of time.
Thanks
Reply With Quote top
  #4  
Old 03-24-2010, 01:15 PM
DJSoulglo's Avatar
DJSoulglo DJSoulglo is offline
Senior Member
 
Join Date: Jan 2006
Location: Amsterdam
Posts: 475
Re: A way to delete all alpha channels at once?

Is there also a way to delete all paths from an image, because that would be awesome....
Reply With Quote top
  #5  
Old 03-24-2010, 01:47 PM
Der_W's Avatar
Der_W Der_W is offline
Senior Member
 
Join Date: Jul 2009
Location: Germany
Posts: 558
Re: A way to delete all alpha channels at once?

Of course there is :-)

Quote:
Originally Posted by Save as Paths.jsx
#target photoshop
app.bringToFront();
var theImage = app.activeDocument;
theImage.pathItems.removeAll();
PS: You can also put those two together to delete paths and channels at the same time, if you want to, just add the last line of each script to the other one and save as *.jsx.
Reply With Quote top
  #6  
Old 03-24-2010, 03:15 PM
pixelzombie pixelzombie is offline
Senior Member
 
Join Date: Jan 2006
Location: chicago
Posts: 1,098
Re: A way to delete all alpha channels at once?

can someone upload a copy of this script?
Reply With Quote top
  #7  
Old 03-24-2010, 07:49 PM
flexmanta's Avatar
flexmanta flexmanta is offline
Senior Member
 
Join Date: Dec 2009
Location: Spain
Posts: 339
Re: A way to delete all alpha channels at once?

Why a copy? Just open a text editor (notepad), paste this:

#target photoshop
app.bringToFront();
var theImage = app.activeDocument;
theImage.channels.removeAll();


And save the file as whatever.jsx. Then in photoshop, run that script by doing File->Scripts->Browse. You might aswell record an action while you call the script.

In fact, now i have this action that i use from the bridge to create a bunch of flat TIFF. Select the images, then use the image processor and set it to save as tiff with LZW compression and have it run an action like this one:

1.Flatten Image.
2.Delete alpha channels (by using the script).
3.Convert to desired color profile.
4.Set mode to 8bit.

That way, when I'm assigned a whole series of photos for retouch, i don't have to open them one by one to create the tiff files to send to the client.
Reply With Quote top
  #8  
Old 03-24-2010, 08:17 PM
KR1156 KR1156 is offline
Senior Member
 
Join Date: Sep 2005
Location: outside of the box.
Posts: 628
Re: A way to delete all alpha channels at once?

you can also record actions that delete paths, channels, changes bit mode, converts etc. etc.....and go to "automate" "batch" "create droplet".

it will create a little icon that you can save on your desktop or in your job folder....and all you have to do, when ready to supply final files to clients....is just drag the opened or unopened psd files onto this little droplet icon and PS will do all the work for you. It will run the appropriate action you assign and save the "final files" for delivery wherever you assign it to.
Reply With Quote top
  #9  
Old 03-25-2010, 06:35 AM
flexmanta's Avatar
flexmanta flexmanta is offline
Senior Member
 
Join Date: Dec 2009
Location: Spain
Posts: 339
Re: A way to delete all alpha channels at once?

Good stuff KR1156! Quick flat tiff files with no alphas or paths... the way it should be.

Now just one more question for total perfection. Is there any way to hook the bridge to an ftp to see remote folders? That would be a really nice feature!
Reply With Quote top
  #10  
Old 03-25-2010, 09:32 AM
DJSoulglo's Avatar
DJSoulglo DJSoulglo is offline
Senior Member
 
Join Date: Jan 2006
Location: Amsterdam
Posts: 475
Re: A way to delete all alpha channels at once?

Genius. These 2 scripts are just genius. Thank you very very much.
Reply With Quote top
Reply

  RetouchPRO > Technique > Photo Retouching


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Misaligning color channels on purpose Peer K Photo Retouching 11 01-21-2010 07:12 AM
Dodging and Burning on Channels? snook305 Photo Retouching 8 04-30-2009 03:13 AM
additional color layer in channels palette? danii Photo Retouching 4 06-27-2008 06:52 AM
I'd like a tutorial on Gradiated (sp?) alpha channels. pixeltickler RP Tutorials 1 12-28-2003 12:28 AM


All times are GMT -6. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved