Script to Sort Images with/without Clipping Paths?

I've searched for a while and can't find a script that will sort a folder of images into two new folders that contain images with and without clipping paths. Anyone have or know of a script that will do this for me? I'd would greatly appreciate it. W7, PS CS5 32 and 64 bit.
Thanks in advance!
Andy

Hi Andy, Mike has a function to check for clipping groups but requires the file to be open...
// Function: clippingPathIndex
// Description: Gets the index of the activeDocument's clipping path
// Usage: clippingPathIndex()
// Input: None
// Return: Index as Integer. -1 if there is no clipping path
function clippingPathIndex(){
     var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
     var desc = executeActionGet( ref );
     var clippingPath =  desc.getObjectValue(charIDToTypeID("Clpg"));
     return  clippingPath.getInteger(charIDToTypeID("ClpI" ));
I think it should be possible to check the files without opening them using Bridge, looking at the Photoshop File Format it says....
If the file contains a resource of type 8BIM with an ID of 2999, then this resource contains a Pascal-style string containing the
name of the clipping path to use with this image when saving it as an EPS file. 4 byte fixed value for flatness and 2 byte fill rule.
0 = same fill rule, 1 = even odd fill rule, 2 = non zero winding fill rule. The fill rule is ignored by Photoshop.
I will see if I have time today to put something together for you.

Similar Messages

  • Script to Sort Images with/without transparency?

    I've made this a new thread because I posted a similar question that was answered correctly in another thread about a sorting script for images with and without clipping paths.. I'm hoping the trend continues. (I could probably modify the script myself if I knew the proper syntax for image transparency.)
    So, my question simply is: Is there a script that will sort images (in my case psds) into two separate folders, one containing images with transparency, and one with images with no transparency (or, no layers).
    Any help with this, as always, would be very very much appreciated,
    Thanks!
    Andy

    Another reason to create this as a new thread of course is to help anyone else who may do a search on this particular scripting need .

  • Bring in another .psd file with the clipping path

    Okay, this client has a very odd request. They want a collage of images put together in one file and they want the clipping paths to be attached. Then it's to be saved as an eps file. I'd like to do this in InDesign and am going to be posting this same question there as well. I like that in InDesign, the clipping path stays attached to the image when you move it. However, is there a way to do this in Photoshop? I don't know how to bring .psd files into Photoshop along with their clipping paths. If there is a way to do this, is there a way to link the clipping path to the layer so that when I move the individual layers, the clipping path moves with it?
    Help would be greatly appreciated! Thank you!

    In Photoshop "Clipping Path" is a special kind of Path and limited to one per image and not linked to one Layer.
    A work-around to combine multiple images with individual Clipping Paths into one psd file with a combined Clipping Path could be
    • applying the Clipping Paths as Vector Masks to the images (flattened to one Layer or converted to a Smart Object each),
    • combining them and after positioning/transforming/…
    • copy/pasting the individual Vector Masks into one new Clipping Path.

  • How do I crop an image with a Clipping Mask using a circle instead of a rectangle?

    I watched Adobe TV Illustrator's tutorial about cropping images with a clipping mask. In the video, the presenter uses the rectangle tool with the clipping mask, and makes a reference that the circle or vector shape could be used, but I cannot figure out how to get the circle. 
    http://tv.adobe.com/watch/learn-illustrator-cs6/cropping-images-with-clipping-masks/
    I'm new to Illustrator and need step by step instructions!
    Thanks!

    Christine,
    As Larry said, and as I said in the first post:
    For a Clipping Mask, you just create a path, in this case a circle, and place it on top of the image, then select both and Object>Clipping Mask>Make.
    You can see the shortcut when you use the dropdown; it is Ctrl+7 for Windows.
    At least in the old days, you could also use Alt/Option+O+M+M (easy to remember, Object>Mask>Make).
    It is easy to skip/overlook the exact steps.

  • Image with /without payload encryption

    Hi all,
    Can you tell me when I should go for IOS image with payload encyrption and without payload encryption and what are the basic differences?
    Thanks in advance,
    Ram

    Here is more information on IOS image with/without "payload encryption" for your reference:
    http://www.cisco.com/en/US/prod/collateral/iosswrel/ps8802/ps5460/product_bulletin_c25-566278_ps10537_Products_Bulletin.html
    1. Universal  images with the "universalk9" designation in the image name: This  universal image offers all the Cisco IOS features including strong  payload cryptography features such as IPSec VPN, SSL VPN, and Secure  Unified Communications.
    2.  Universal images with the universalk9_npe" designation in the image  name: The strong enforcement of encryption capabilities provided by  Cisco Software Activation satisfies requirements for the export of  encryption capabilities. However, some countries have import  requirements that require that the platform does not support any strong  crypto functionality such as payload cryptography. To satisfy the import  requirements of those countries, the `npe' universal image does not  support any strong payload encryption. This image supports security  features like Zone-Based Firewall, Intrusion Prevention through  SECNPE-K9 license.

  • Importing SVG with nested clip-path

    I'm having serious issues in Illustrator CS5 trying to import SVG files with nested clip-path properties.
    Illutrator seems to create unnecessary groups, and messes up with group parents, effectively screwing things up.
    Here is a minimal example :
    <?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY ns_svg "http://www.w3.org/2000/svg"><!ENTITY ns_xlink "http://www.w3.org/1999/xlink">]>
    <svg version="1.1" id="main" overflow="visible" xmlns="&ns_svg;" xmlns:xlink="http://www.w3.org/1999/xlink">
      <g id="piece-1">
        <g clip-path="url(#cpform)" id="form1">
          <g clip-path="url(#cplogo)" id="logo1">
                        <rect fill="#FF0000" x="10" y="10" width="1000" height="1000" />
          </g>
        </g>
      </g>
      <g transform="matrix(1,0,0,1,200,0)" id="piece-2">
        <g clip-path="url(#cpform)" id="form2">
          <g clip-path="url(#cplogo)" id="logo2">
                        <rect fill="#FF0000" x="10" y="10" width="1000" height="1000" />
          </g>
        </g>
      </g>
      <clipPath id="cpform">
              <rect x="0" y="0" width="150" height="150">
              </rect>
      </clipPath>
      <clipPath id="cplogo">
              <rect x="0" y="0" width="100" height="100">
              </rect>
      </clipPath>
    </svg>
    Such a valid SVG file displays fine in Chrome, IE, Opera, Firefox, but Illustrator fails loading it properly, because it creates two groups between "main" and "piece-1" (which is in itself not too bad), and sets piece-1 as a brother of another unnecesarry group from which piece-2 will descend. piece-2 and piece-1 are then clipped with piece-1 clip-path, which is just plain wrong and screws display.
    Note that you can move piece-2 to the root of the document, which restores the display. But save this fixed file, and open it again : it"s back to its broken state.
    Does anoyone know if this is fixed in CS6 ? If there is a workaround ?

    AI doesn't care for the original structure of an SVG. It will merely try to retain the appearance based on its own internal logic, which of course matches how you would create a normal AI file. So no, you can't probably avoid it.
    Mylenium

  • Cutting out images in indesign, clipping path problems

    Hi,
    I have been putting images of my drawings from photoshop onto indesign for my portfolio,  after looking around the only way I can seem to find to cut them out is using clipping path/detect edges.
    The problem I have is because they are scanned sketches this method produces really inacurate and shoddy results and no matter how much I play around with the threshold and tollerance this means I still have to mess around with the pen and arrow tool for ages on each image.
    Is there a quicker solution to cutting them out like the magic wand or lasoo tool on indesign?
    It has taken days now in in design , I have all the images already cut out from their original pages on photoshop but the white box always comes around again when I drag or place the images in indesign.
    I have been shorcutting some pages and doing layout on photoshop and placing the image behind which works fine sometimes but is really inconviiant when I want to move the layout around text ot anything...... i have attatched some pictures to show you what I mean.
    Thanks for your help in advance
    Leo

    Well Thats 2 days of my life Ill never get back!
    Thankyou very much! cant belive I was that stupid

  • Rotating an image within a clipping path in Photoshop CS5

    When you have taken a photo of an image, then open it up in     Photoshop and realise its on a bit of an angle but you make a clipping path     around it first and save it, then afterwards want to rotate it - Is there a     way of linking the path with the image layer so they rotate together in     one step?,
    Or can you only rotate the image layer first then the path separately as     thats what I ended up doing?
    Hoping someone can help me and answer my question

    If your clipping path is stored in the Paths panel, then no. But you can select the path then go to Layer > Vector Mask > Current Path. Not transform the layer and the path is transformed, too. You can then open the Paths panel and drag the vector path onto the New Path button to duplicate it and make it a clipping path for the entire image.

  • Distorting a Jpeg with a clipping path

    Let me first say that I love using clipping path jpegs made in Photoshop. They can be used in InDesign of course, batched and converted to other formats which need transparency, and so on... The one irritating part is that there's no easy way to distort or scale the clipping path and image together after the file has been created, or at least not that I'm aware of.
    For example, I'm working on a piece of furniture which already contains a clipping path, but the client wants the image straightened (or, the perspective from the camera removed, which I don't like actually). So, is there an easier/faster way to do this instead of having to first distort the image, then manually try to line up the clipping path, or worse, remake the clipping path?
    Any help would be greatly appreciated, thanks

    Distort the image in Transform mode (Cmd+T) then target the Path only and use Edit > Transform Path > Again (Shift+Cmd+T) to instantly distort the Path in the same way.

  • Save image with histogram clipping

    I really like the way some of my images look when I set the histogram to show clipping. I'd like to save the images in that state (with the clipping showing: red for white, blue for black). Can anyone tell me how to do this?   Many thanks in advance!

    Take a screenshot if quality is not the first concern.
    And reimport this in LR.
    Otherwise Photoshop can do that, though you will need to mask the whites and the blacks and fill in the color by yourself.
    Frans

  • Script: photoshop opening image with a camera profile

    Have a workflow where I want to use a nominated camera profile when opening a raw file.
    Anyone know how to do within a script ?
    Usually work within a vb world but will take any code anyone has got.
    Looked through the vbscripting reference handbook without any joy.

    when all else fails fall back to:
    1. creating an action emulating what I want to do
    2. Coping the vbscript created in the text file on the desktop (windows)
    3. make a few changes to the code ie calling on the file
    4. And all done

  • Live effects such as Drop shadow and blurs convert to flatten images with giant clipping masks preventing edits?

    Without reason and at great costs, live effects convert to unusable web style graphics. This is not photoshop. Is adobe moving to kill Illustrator in favor of PhotoShop style web graphics? Suddenly every time I open a template the drop shadow or Gaussian blur has been converted to transparent overlay with a giant opacity mask applied. In trying to repair the damage by releasing the opacity mask the whole graphic jumps to a black square? Not all of the effects do this, just newer templates. I first thought because a fellow artist creates her graphics in RGB work space that this was the cause. It is not. Now randomly this happens. What am I doing wrong that causes this.

    No they are ones my company creates for products we carry. We print on the items. I need to center logos on the items and not the items and the shadow. I also need to update the items as time goes by. It used to be as simple as open the file and make the needed changes. Now I have to start from scratch on the items that self convert. Any time a computer file self converts to a different type of file you have a problem. Only certain templates have morphed like this. I'm sure it's something I'm not catching.

  • Gif/png with mask/clipping path over a background

    I'm fluent in Photoshop, Illustrator and am decent in Flash
    (but it's been a while).
    What I'm trying to do is to have multiple masked objects
    (images - not vector) fade in and out over a background that is
    also in motion. My client has provided me with a psd with all the
    images, text etc. on layers.
    I've made gifs w/transparency but no matter what I do,
    there's a white line around the edge of the graphic. Image was made
    in PShop by erasing everything except what was desired and saved as
    gif/trans. White edge appears due to being on a dark background...I
    edit the gif in PShop and erase the whole outer edge, save, update
    and it's still there!
    I've messed a bit with the mask feature in Flash and am
    stumbling thru Fireworks editing, but just cant seem to make this
    work right!
    I can't find a source of info that is in-depth enough to help
    me out.
    If you have any suggestions, I (not to mention my client!)
    will very much appreciate your wisdom!

    You were absolutely right! It wasn't that hard...thanks to
    you!
    (Hope you like beer, btw!)
    Now all I have to do is fix the walls where I was banging my
    head against 'em!
    Thanks again!

  • My Clipping Path isn't working? Please help...

    I am working in Photoshop CS4 on Mac. I have followed the steps below to create a clipping path:
    * Opened image that I want to add a clipping path to
    * Selected the part of the image that I wanted to clip (with the eliptical marquee tool)
    * On the Paths tab, selected "Make Work path"
    * In the pop-up box tolerance is set to 0,5pixels
    * I can now see an outline of a shape on the image
    * In the Paths tab - double clicked on the work path and saved the path as "Path 1"
    * Select the created path on the path tab and then chose "Clipping Path" from the tab dropdown
    * Left "Flatness" blank in the pop-up provided
    * The name "Path 1" now looks outlined in the paths tab
    I have tried to save the image as a JPG, PNG, TIF... RGB and CMYK... nothing seems to work. The entire image still previews.
    I turned off OpenGL and there are no layer styles applied to the image. There is only one layer in the file. I am very confused... this function used to work and now for some reason it doesn't. Are there any other settings linked to creating a clipping path that i may have changed by mistake without knowing it would affect this?

    Tiff format definetly works - i have used it in the past. I just tried EPS and the clipping path works - so thank you!
    It seems that I have been a bit stupid though... I just realised my error - to check if the clipping path was applying correctly, I have been opening the clipped image in Preview... It seems that Preview can't "see" the clipping path on a .tif and it "sees" the area outside the clipping path on an .eps as "flattened" (so i see a hard white background, when i am expecting it to be transparent). I just imported the .eps and .tif into Indesign and Illustrator and the clipping path applies fine in both cases. it seems that the real issue is between Mac and PC.... I am running Adobe on Mac and Corel Draw on PC... Corel Draw seems to have an issue with .eps and .tif files with clipping paths.
    png works in Corel Draw but transparency causes distortion for elements behind the transparent section... will keep trying :-)
    ...this is the story of my life! I hate working on PC but every now and then a client gives me a file where the artwork has been created in Corel Draw and I'm faced with these anomolies...
    Thanks for helping me to think this through logically!
    FYI on tiff format clipping paths...
    Source: http://www.espressographics.com/text/fileformats.html
    Photoshop EPS (.eps): EPS stands for Encapsulated PostScript format, which is based on the PostScript printing language. Most .eps graphics are created and edited in a draw (vector) application like Illustrator, and when you open an Illustrator vector .eps image in Photoshop, Photoshop will still convert it to pixels. As such, an Illustrator .eps doesn't have the same editable properties as a Photoshop .eps graphic so don't confuse the two. Photoshop .eps format is primarily used for creating images with clipping paths and monotone/duotones. It used to be that an image with a clipping path could only be saved as in .eps format in Photoshop. This is no longer true with later versions of Photoshop where you can save graphics with clipping paths in .tif format as well. When you create a monotone or duotone image in Photoshop, it is still best to save it in this .eps graphic file format, although .psd and .pdf options are also available.

  • Changing clipping paths

    Hello all,
    I have an idea for a script that bases on modifying the clipping path of an image. Basically what I try to achieve is that the image is visible only inside a selected path with some offset.
    Given a document with one polygon and one image with applied clipping path I would expect this to work:
    var aDoc = app.documents[0];
    var aGrap = aDoc.allGraphics[0];
    var aPol = aDoc.polygons[0];
    var ePath = aPol.paths[0];
    var aClip = aGrap.clippingPath;
    ePath = aPol.paths[0].entirePath;
    aClip.paths[0].entirePath = ePath;
    aClip.insetFrame = -2;
    ePath = aClip.paths[0].entirePath;
    aPol.paths[0].entirePath = ePath;
    But these lines
    aClip.paths[0].entirePath = ePath;
    aClip.insetFrame = -2;
    seem to exclude each other. The insetFrame works fine as long as I didn't touch the path. And the changing of the path works fine but the insetFrame doesn't do anything except showing the spinning ball, that spins until I click somewhere on the pasteboard.
    Am I thinking wrongly or is there a bug that makes my idea impossible?
    Thank you
    Gerald

    The VB.NET project file has the .vbproj extension and is an XML text file. Therefore you can make a backup, then edit it using an editor, such as Notepad. Find the old references by path (probably in
    <Reference> elements) and adjust them (perhaps using ‘Replace All’).
    To avoid such situations if similar changes are expected again, then maybe consider mapping a drive letter, such as ‘S:’, to the server. (Ask IT Department). When server is changed, then the mapping will be adjusted, but the paths and references
    will remain unchanged.

Maybe you are looking for

  • Facetime No Longer Works After 4.3.4 Update

    Has anyone else experienced this issue on their iPhone? After my wife upgraded her iPhone 4 to 4.3.4 her FaceTIme no longer sends a video signal. My iPhone 4 upgraded without a hitch, but hers doesn't send a video signal at all. She cannot see hersel

  • Recovering iMessage history after clean install - reindex

    With the release of 10.9 and after suffering from some cruft issues in my 10.8 install I decided to do a nuke and pave. I am almost back to 100% however i discovered that my iMessage history no longer present. Reading another post I have found the ar

  • Strange SSD problem

    Hello, Ive got a 2012 Macbook Pro that i installed a Samsung 830 in when I bought it a year ok, worked fine up until 2 weeks ago. One evening the system got sluggish and hanged so i powered it off and when rebooting i got the no boot volume questionm

  • Mobilesync

    If youre like me and your Mobilesync (iphone backups) file is getting too large and filling out your HDD try this http://www.smaier.net/blog/how-tos/change-location-mobilesync-folder-mac Works a treat

  • Why is New to Java so much faster than Java Programming?

    It feels like the New to Java server is at my neighbor's house, and Java Programming is on Neptune. What gives? It always takes like 10 seconds to load the Java Programming board.