How to save layers with cropping?

I want to export layers to files (basically what "Export Layers To Files.jsx" does) but with cropping each layer (to different sizes). I know how to crop a document from script, but that also crops all other layers (erases their content outside of the cropping area). So my question is - how do I keep/retrieve the cropped out content of the document (layers)? Or maybe there's a better approach altogether?

Seems to me that you only need to keep the cropped pixels because of way you want to do this.
However if you want to do it this way you could create a history snapshot, crop and save the first layer. Then restore the document using the snapshot and crop and save the second.
Or you may be able to just store the current history state in a variable then restore the document using that history state if you are only using a few history states to crop and save.
With a snapshot you don't have to worry about the number of history states but it needs action manager. Storing the current history state can be done using the DOM.

Similar Messages

  • Save pdf with crop and bleed marks in Photoshop cc 2014

    ! !Hi,
    I used to save PDF for print with crop marks in Photoshop by setting them up when using "save as". Don't have that option any more in CC 2014. Is it a new way to do it or I have something turned off?
    Thanks! 

    I can get crop marks by using the "Print" menu and printing to PDF. My question is: How do you handle bleeds when printing crop marks in the "Save" or "Print" stage? Aren't the crop marks placed at the file extents?

  • How to save file with the "/" symbol in the name?

    Hi,
    I have Adobe Professional 8.  I need to save files with names that include the symbol /, but Adobe interprets, for example, A/88/6, as file name 6, in a folder named 88, in a folder named A, and sets up new folders to accommodate that.  I cannot substitute another symbol as I already have thousands of pdf files in a database using the / symbol, and I need them in the same folders.
    I would very greatly appreciate any advice,
    thanks,
    Mo.

    Thanks.
    As I said, I'm pretty ignorant about these things.  I wouldn't know how to begin using a "hack".  All I know is that I was able, for over a year, to save .pdf files directly from my browser on several computers, and use the forbidden "/" symbol in every file name.  After saving the files, Adobe will happily open them, and allow me to edit and re-save them, although I now see that it will not allow me to "save as" them under a different name without removing that symbol.
    I may not be tech-savvy, but I can state that everything I have said here and above is entirely accurate.  I would be happy to open a dropbox account to show you countless .pdfs with the symbol "/" in the name.
    This is honestly not that big a deal.  I greatly appreciate this discussion, and you have inspired me to become slightly less computer-ignorant.
    Hope you all had a great New Year.  I am still recovering.
    Cheers,
    Mo.

  • How to save layout with ALV Pivot format

    Hi
    In ALV report I have  25 fields but I want to use 10 fields out of 25 fields in Pivot Table. My problem is how to save this layout with Pivot format for on going use. At every time execution of report I need not required to set  Pivot Table.
    Please help me.
    -Sanjay

    Hi,
    Are you using FM REUSE_ALV_GRID_DISPLAY? If yes, then pass 'X' to the parameter I_SAVE while calling the fm.
    if you are using Object Oriented ALV, then call the below method before calling the method for display
    DATA : gr_layout TYPE REF TO cl_salv_layout,
           gr_layout_key TYPE salv_s_layout_key.
    CALL METHOD gr_functions->set_all
      EXPORTING
        value  = IF_SALV_C_BOOL_SAP=>TRUE.
      MOVE sy-repid TO gr_layout_key-report.
      CALL METHOD gr_table->get_layout
        RECEIVING
          value = gr_layout.
      CALL METHOD gr_layout->set_key
        EXPORTING
          value = gr_layout_key.
      CALL METHOD gr_layout->set_save_restriction
        EXPORTING
          value = if_salv_c_layout=>restrict_none.
      CALL METHOD gr_layout->set_default
        EXPORTING
          value = if_salv_c_bool_sap=>true.
    Regards
    Vinod
    Edited by: Vinod Kumar on Jul 2, 2010 3:40 PM
    Edited by: Vinod Kumar on Jul 2, 2010 4:43 PM

  • How to save Solo with the Song?

    Hi,
    When I activate solo on some tracks, save the song and open it again, solo is not active anymore, so that it blows off my speakers when I start playing and forget to activate solo again.
    How to save solo activation?
    Thanks for any help.

    Werner Zervas wrote:
    Hi,
    When I activate solo on some tracks, save the song and open it again, solo is not active anymore, so that it blows off my speakers when I start playing and forget to activate solo again.
    How to save solo activation?
    Thanks for any help.
    Solo is a momentary button.
    And, do you have ANYTHING between your speakers and the computer's audio otuput?
    You should have some sort of mixer / monitoring thing that has a volume knob, so you don't kill your ears.

  • How to save .jpg with jdk1.1.4?(help..)

    HI...
    i know i can use following code to save .jpg with jdk1.4 by using following code:
    BufferedImage img; // your working image
    ImageIO.write(img, "jpg", new File("save.jpg"));
    or
    BufferedImage bimg = null;
    int w = img.getWidth(null);
    int h = img.getHeight(null);
    int [] pixels = new int[w * h];
    PixelGrabber pg = new PixelGrabber(img,0,0,w,h,pixels,0,w);
    try {
    pg.grabPixels();
    catch(InterruptedException ie) {
    ie.printStackTrace();
    bimg = new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
    bimg.setRGB(0,0,w,h,pixels,0,w);
    // Encode as a JPEG
    FileOutputStream fos = new FileOutputStream("out.jpg");
    JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(fos);
    jpeg.encode(bimg);
    fos.close();
    But when i want to recompile with jdk1.1 , what can i do now ?
    Do you have any exapmles?
    thank you so much...

    Sorry I was not in Station!!!!!and hence the delay in replying
    Check this example for more details
    public WriteImageIW( String filename, String type ) {
    try {
    int width = 200, height = 200;
    int x0 = 20, y0 = 20, x1 = width-20, y1 = width-20;
    BufferedImage bi = new BufferedImage( width, height,
    BufferedImage.TYPE_INT_ARGB );
    Graphics2D ig2 = bi.createGraphics();
    GradientPaint paint =
    new GradientPaint( x0, y0, Color.white, x1, y1, Color.black );
    ig2.setPaint( paint );
    ig2.fillRect( 0, 0, width-1, height-1 );
    BasicStroke stroke = new BasicStroke( 10, BasicStroke.CAP_ROUND,
    BasicStroke.JOIN_ROUND );
    ig2.setPaint( Color.lightGray );
    ig2.setStroke( stroke );
    ig2.draw( new Ellipse2D.Double( x0, y0, x1-x0, y1-y0 ) );
    Font font = new Font( "TimesRoman", Font.BOLD, 20 );
    ig2.setFont( font );
    String message = "Java2D!";
    FontMetrics fontMetrics = ig2.getFontMetrics();
    int stringWidth = fontMetrics.stringWidth( message );
    int stringHeight = fontMetrics.getAscent();
    ig2.setPaint( Color.black );
    ig2.drawString( message, (width-stringWidth)/2,
    height/2+stringHeight/4 );
    Iterator imageWriters =
    ImageIO.getImageWritersByFormatName( type );
    ImageWriter imageWriter = (ImageWriter)imageWriters.next();
    File file = new File( filename );
    ImageOutputStream ios =
    ImageIO.createImageOutputStream( file );
    imageWriter.setOutput( ios );
    imageWriter.write( bi );
    } catch( IOException ie ) {
    ie.printStackTrace();
    the file is being created, the type of the file must be specified on the command line.

  • How to save layers of a PSD file?

    I am a software developer and I have received a PSD file from a client. I need to be able to save the individual layers so I can apply them to the user interface. I've tried some suggestions from on-line sources but I'm still not able to export the images. The image below is what I am seeing for layers.
    All suggestions appreciated.

    The problem is that Photoshop Elements does not natively open layer sets. You'll either have to have your client send you the PSD file(s) with the layers not in layer sets or find a workaround.
    (You try a trial of Photoshop if you haven't tried out CS5 yet and do it in Photoshop. While you have the trial, you could record an action to open layer sets that could be used in Elements if you decide not to purchase Photoshop. See the Elements thread I linked...Post 6 which gives details on how to write that action.)
    http://www.adobe.com/downloads/
    Some have found that you can open them if you use an action.  There is a link to a freebie action written for E7 on the Elements Village forum. I don't have any personal experience with the action nor know if it still works in E8. You'll have to register to get access to the action file but the registration page says it's free (unless otherwise specified). I'm not a member of this particular site so can't say what the otherwise specified means.
    See post #6 on this page which gives details on how the action is written and where to install along with an action that has a download link:
    http://www.elementsvillage.com/forums/showthread.php?t=48026

  • How to save layered PDD file as JPG?

    Hi, folks:
    [running Photoshop CS3 under Windows XP Pro/SP3 ]
    I have a PSD file with about 14 layers. A few are hidden. I want to save as a jpg, so I go to file -> save as and save as a jpg file (the yellow alert icon shows next to "layers" in the save dialog). Yet the resulting jpg looks just fine. I've been doing this for years.
    Today, support told me in case #180459305 that doing that would corrupt the jpg. They said that I need to first merge layers in the PSD file, then save as a jpg.
    They also suggested that I post this question here. So here it is. Do I have to go through the extra step in manually flattening the PSD file (and potential pitfall of mistakenly saving it as a PSD and losing my layers forever)?
    Thanks,
    Fred

    Hi, Ed, J:
    Thanks for your responses!
    His explanation was as follows:
    Save the layered PSD as a jpg. When you do so, a yellow exclamation alert appears next to "layers" in the save dialogue box. He said this means that the file will be corrupted if it is saved.
    Now I believe it means that layers will be merged during the process of saving as a jpg, and I said so. He said no, let me prove it to you:
    Go to Image->mode-> and set 16 bits per channel. Then save as a jpg. You will notice that there is no way to save an image as a jpg. Now how the hell that proves his former point is beyond me.
    Now for the biggest laugh of the day: he said (in case#180459305) that if you copy or rename files using the filesystem filemanager (e.g., the desktop or windows explorer), that it would open the file to copy or rename it and then rewrite it, thus cause lossy image degradation.
    I told him (politely) that he was wrong - that renaming a file does not open it - it simply updates directory information about the file, and that copying a file (outside of photoshop) does a byte-for-byte clone of the file and does not degrade image quality.
    Where do they get these purported "experts"????
    Cheers,
    Fred

  • How to save Jobs with different priority level in a Queue?

    Hi, Friends,
    I have a set of Job (see below) objects.
    I would make a queue: if they have the save priority level, first in and first out. this is easy to do by ArrayList. however, If they have different priority level, I would like make the Jobs with the highest level first out.
    How can I implemented this idea in Java?
    Regards,
    Youbin
    public class Job {
    private short _priorityLevel = 0;
    public void setPriorityLevel(short priorityLevel) {
    this._priorityLevel = priorityLevel;
    public short getPriorityLevel() {
    return _priorityLevel;

    Hi,
    Here is my test code, it works:
    public class Job implements Comparable{
    private int _priorityLevel=0;
    private String _jobDescription=null;
    public Job() {
    public void setPriorityLevel(int priorityLevel) {
    this._priorityLevel=priorityLevel;
    public int getPriorityLevel() {
    return this._priorityLevel;
    public void setJobDescription(String jobDescription) {
    this._jobDescription=jobDescription;
    public String getJobDescription() {
    return this._jobDescription;
    public int compareTo(Object obj) {
    return (this._priorityLevel-((Job)obj)._priorityLevel);
    import java.util.LinkedList;
    import java.util.Iterator;
    import java.util.Collections;
    import java.util.Collection;
    public class test {
    public test() {
    public static void main(String[] args) {
    Job job1 = new Job();
    job1.setJobDescription("Job1");
    job1.setPriorityLevel(2);
    Job job2 = new Job();
    job2.setJobDescription("Job2");
    job2.setPriorityLevel(2);
    Job job3 = new Job();
    job3.setJobDescription("Job3");
    job3.setPriorityLevel(2);
    Job job4 = new Job();
    job4.setJobDescription("Job4");
    job4.setPriorityLevel(1);
    Job job5 = new Job();
    job5.setJobDescription("Job5");
    job5.setPriorityLevel(1);
    Job job6 = new Job();
    job6.setJobDescription("Job6");
    job6.setPriorityLevel(1);
    LinkedList linkedList = new LinkedList();
    linkedList.addLast(job1);
    linkedList.addLast(job2);
    linkedList.addLast(job4);
    Iterator ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    linkedList.addLast(job3);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    linkedList.addLast(job5);
    linkedList.addLast(job6);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    }

  • Cropping Layers with Crop Tool in Photoshop CC 2014?

    I have been trying to find out if the crop tool can be used in Photoshop CC 2014 to crop layers individually rather than the entire file, and I am not finding any answers through any searches. I can't even find a standard Abode How-to for cropping in the CC version. Is the Marquee tool still the only (best) way to crop an individual layer?
    Also, I have been looking at a crop tool tutorial for the CC version that seems a bit opaque to me in the way it's written (Adobe Photoshop CC for Photographers), and it refers to a Crop options fly-out menu, but I can't find any way to access this.

    The Crop tool is not designed for the job you would like done. As you have seen, it crops the entire image.
    Instead, use the Rectangular Marquee tool to frame the area you would like to maintain. (Sample 1)
    Then choose Select > Inverse. It will select the area to be removed.
    Then tap the Delete key. Result is Sample 2)

  • How to save PDF with fields so someone can fill out form and send it to printer

    Using Adobe Acrobat X for Mac, I built a pdf template with fields for
    sending an assortment of Business Card files to the printer to print.
    How do I save the file so my brother/client can start typing in different
    names, job titles, and contact info and send them to a printer.
    Thanks,
    jsorlean

    Create your form.
    go to advanced menu
    choose the item about Reader Rights
    when open set what you want Reader to be allowed to do.
    Once set and saved the can fillout, save, email but they can not change the actual form itself just the contents they added.
    Not there is a cap of 500 hundred instances per different PDF.
    (Please note information is given by an Experienced User of Acrobat. I am not an employee of Adobe.)

  • How copy/paste layers with frame animations?

    I have a movie clip (mc1) with 6 layers (under 1 mask) and
    some tweens. (It's just a continuous transition of pictures.)
    I have another movie clip (mc2) that is the same layout
    (different layers.)
    I want to combine the 2 into 1 movie clip. I tried to select
    all layers and copy from 1 and paste to the other, but it doesn't
    paste correctly.
    How can I do this? It seems like it would be easy.
    Thanks

    robertnzana wrote:
    > Any way to "paste frames in place"? I had to move
    everything by hand.
    There is no way. You have to remember that each of these
    instances will have different
    center point so option like this, especially while moving
    frames not the individual
    content itself, wouldn't be of much use, or not very
    accurate. Unless of course, both
    clips from beginning were made in the exact position so the
    center point will be the same
    but then, there would be no need for Paste In Place because
    with same center point, it will
    position your content precisely . Edit Multiple frames is you
    best bet.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How to save document with pixel aspect correction?

    I have a document which has has a non-square pixel ratio thus requires pixel aspect ratio correction to be turned on to view the image correctly.
    I want to save it as a JPEG for use online however I cant find an option anywhere to make the saved file have the corrected aspect ratio.
    Essentially when I save the file as a jpeg (or any end format) the image is squished. How can I save the file not squished? (ie. burn in the ratio correction)

    As I still work with a lot of Images, being used in SD Video, where non-square pixels are the rule.
    I Save_As PSD, and Import those adjusted PAR (Pixel Aspect Ratio) Images. However, that does not work in your case. I have never used JPEG, but wonder if that format is fully supportive of non-square pixels - never needed JPEG, so have never investigated.
    As Web display is on a computer, with square pixels, why the use of non-square pixels for the Web? [Just curious]
    Good luck, and wish that I had more to offer, perhaps PNG?
    Hunt

  • How to save draft with new name

    How do I save a draft with a new name? I want multiple
    versions of the same page.

    1. start Contribute, connect to your site, browse to the page
    you want to duplicate
    2. in the main menu go to >File>New
    3. choose the opstion 'Copy of current page' and enter a
    title for the page
    4. edit amnd publish the page, enter a new filename if you
    want

  • How to save pictures with the config file "Write Key.vi"

    hi all,
    On my front panel I've few controls pictures containing photos (JPG type) . The user can select the photo he wants using the classic file dialog box.
    Usally I use the config files VI's to save the control values from one run to another one. In the config files VIs, I use the polymorphic "write Key.vi" wich accept only booean, I32, U32, path, and string dada type, but no picture !
    I've tried the "flatten to string" fonction (picture --> flatten to string --> writekey.vi) , no broken wire but the conversion is very very too long and to heavy (20Mo a key!).
    another way, would be to write in a xml file, I've also tried but I've always get the 1104 error: No end tag was found for an XML start/end tag pair.
    can someone help me.
    what is the best way for  retrieving controls pictures with photos

    Hi GerdW
    Many thanks for your quick answer. Always happy to get advises from fellow programmers.
    You suggest to use the "path" input of the "write key.vi" (configuration file utilities) to retrieve photos that a user would have selected in a previous run. Could be a good solution in a number of applications but what I would like to do is like in a excel or word file. Once a photo has been embeded in one xls file for ex., I find it back each time i open this xls file, even if the original photo's file has been deleted or if my application runs on another computer.
    xml file looks interesting for that purpose (i mean used as config file). I can easily store in a xml file a labview picture (like a colored rectangle e.g.) but when i try with a photo (wich is a also a picture) labview returns always the error 1104.
    How to fixe this error, or maybe  there is another way to store photos in a config file without passing through xml,
    kind regards.

Maybe you are looking for