mikeswarts Posted February 1, 2021 Share Posted February 1, 2021 Quick Explanation When I try to export slices created from layers, the output files are not cropped to the document. I can "Rasterize & Trim" each layer to get the desired output, but I'd like a non-destructive way to do it. Any ideas? Detailed Explanation I'm taking photos of a number of products, each of which have 6 photos of the same size. My goal is to keep one AFPhoto file per product with each of the 6 photos as layers, with all edits made non-destructively, and then export each photo with a lower resolution (for web) in bulk to a designated "Processed Photos" folder. Here's my current, problematic workflow: Open up all product photos as layers in one AFPhoto file Perform various edits, including rotating, cropping, etc to each layer Create slices from layers in Export Persona Set up export settings and export each slice to the destination folder The problem is that the output files are not cropped to the document boundary as shown in AFPhoto. I can solve this problem by selecting each layer and choosing "Rasterize & Trim", but this is destructive, which I don't want. Appreciate the help. I'm guessing it's a pretty simple solution, but I'm an amateur at this software. Quote Link to comment Share on other sites More sharing options...
Pšenda Posted February 1, 2021 Share Posted February 1, 2021 6 hours ago, affinitydesignerfan said: The problem is that the output files are not cropped to the document boundary as shown in AFPhoto. Can you provide a sample/screenshot? I always export only what is bounded in the relevant Slice. mikeswarts 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
mikeswarts Posted February 1, 2021 Author Share Posted February 1, 2021 Here's a sample file iwc-spitfire-chronograph-iw387802-1.afphoto Quote Link to comment Share on other sites More sharing options...
mikeswarts Posted February 1, 2021 Author Share Posted February 1, 2021 And here are the outputs with unwanted white margins. Quote Link to comment Share on other sites More sharing options...
mikeswarts Posted February 1, 2021 Author Share Posted February 1, 2021 It has just occurred to me that I could manually resize/reposition each slice in the Export Persona, but is there any way to avoid doing this manually? Scratch that, that doesn't work either. Quote Link to comment Share on other sites More sharing options...
Move Along People Posted February 1, 2021 Share Posted February 1, 2021 - mikeswarts 1 Quote Move Along people,nothing to see here Link to comment Share on other sites More sharing options...
mikeswarts Posted February 2, 2021 Author Share Posted February 2, 2021 Thanks haakoo, your solution works! However, I do find that I have to keep resizing, repositioning, and re-rotating the 4:3 clipping rectangles after making additional edits because they scale/move/rotate with the images they clip. Edit: I discovered that "Lock Children" solves this problem. Move Along People 1 Quote Link to comment Share on other sites More sharing options...
Old Bruce Posted February 2, 2021 Share Posted February 2, 2021 Quickest easiest way is to use the bottom layer you already have as a clipping mask for each of the watch pictures. First delete all the slices you currently have then duplicate the bottom layer 6 times and use one for each picture as a clipping mask. Now regenerate the slices by using the layers to slices feature. Quote Mac Pro (Late 2013) Mac OS 12.7.4 Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that. Link to comment Share on other sites More sharing options...
mikeswarts Posted February 2, 2021 Author Share Posted February 2, 2021 Also, if I rotate the image and then add the rectangular clipping mask, I get another issue (see images). How do I solve this? It seems like you somehow solved it with the last file haakoo... (Edit: the example I gave did not include rotations, but in fact there frequently are attempts to straighten the image) (Edit 2: The rotation does NOT affect the exported file, so this wasn't an issue after all.) Quote Link to comment Share on other sites More sharing options...
Old Bruce Posted February 2, 2021 Share Posted February 2, 2021 The clipping is the last step in the editing process, do that only before you are ready to export. Quote Mac Pro (Late 2013) Mac OS 12.7.4 Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that. Link to comment Share on other sites More sharing options...
daveu Posted February 12, 2021 Share Posted February 12, 2021 Honestly, this is absurd. If I wanted to export all of the layers and ignore the document sizing, crop, and positioning that I've made then all Affinity Photo is doing is exporting the original photos back into new files. That's not exporting layers... that's exporting source images back into new files of the same source images! I cannot believe that such a basic Export Layers function is missing when it is absolutely required by just about anyone working with photography for websites. The Export Persona tool is a weird and complicated side step to make you manually do the thing you were trying to automate... but then it doesn't even do that. It doesn't slice to the dimensions of the document, it just goes back to source for every layer. So why bother "slicing"?. I just can't figure out how anyone thought this makes sense? This is a design tool, not a super complicated graphic format conversion app. Mann Artt and SnapArtboardsToPixels 2 Quote Link to comment Share on other sites More sharing options...
concep86 Posted September 11, 2021 Share Posted September 11, 2021 I am exhausted. I have a file that has 400 layers, perfectly sized and placed. Now i have to export each one individually! THIS IS CRAZY! Why cant Persona export just the visible area? Am I missing something? SnapArtboardsToPixels and telemax 2 Quote Link to comment Share on other sites More sharing options...
telemax Posted September 11, 2021 Share Posted September 11, 2021 3 hours ago, concep86 said: Why cant Persona export just the visible area? Welcome to the Affinity Forums If you're talking about a canvas or an artboard, I understand you. If you put the layer in a transparent rectangle the size of the canvas, the slice will also be created in the size of the canvas. But this could be a solution, for fewer number of layers. Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
telemax Posted September 11, 2021 Share Posted September 11, 2021 1 hour ago, concep86 said: I have a file that has 400 layers, perfectly sized and placed. This sounds like "Frame-By-Frame" animation. Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
Pšenda Posted September 11, 2021 Share Posted September 11, 2021 2 hours ago, concep86 said: Why cant Persona export just the visible area? Export Persona, Layers panel, Select layer, Create Slice? Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
concep86 Posted September 12, 2021 Share Posted September 12, 2021 (edited) See attachment. I have 5 layers selected. When I click Create Slices... My slices all have different sizes. Seem like the only way to get my files to be the size that I created is to export manually. FYI, This is a file I created to standardize the file dimensions for a shopping cart. Each product has up to 5 images. So I have hundreds of images to export. Doing it manually would be too painful. Help! Edited September 12, 2021 by concep86 Quote Link to comment Share on other sites More sharing options...
telemax Posted September 12, 2021 Share Posted September 12, 2021 I would use artboards in AD, they automatically create a canvas-sized slice. Artboards2.mp4 --- Artboards.mp4 --- Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
concep86 Posted September 12, 2021 Share Posted September 12, 2021 37 minutes ago, telemax said: I would use artboards in AD, they automatically create a canvas-sized slice. Artboards2.mp4 597.17 kB · 0 downloads --- Artboards.mp4 682.45 kB · 0 downloads --- Thanks for the solution... but i am not really versed in AD. Quote Link to comment Share on other sites More sharing options...
telemax Posted September 12, 2021 Share Posted September 12, 2021 Variant for AP 1. Create a rectangle the size of the canvas. 2. Place the layer in the rectangle. But it may be difficult or impossible for you if 400 files, each with 5 layers, have already been created. Layers.mp4 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
lacerto Posted September 13, 2021 Share Posted September 13, 2021 In this kind of a job you could first create slices in the Export Persona for all 400 layers in one operation and then export all slices in one go to desired resolutions. The resulting PNGs would have the original w/h ratio of each image, but they would have the cropped image at canvas w/h ratio on a transparent background. All the exported PNG images could then be trimmed (transparent bg removed) and rasterized and saved to final PNGs by using File > New Batch Job, and applying a macro: trim_and_rasterize.mp4 Trim_and_rasterize.afmacros.afmacro Quote Link to comment Share on other sites More sharing options...
SnapArtboardsToPixels Posted May 31, 2022 Share Posted May 31, 2022 Why don't the have "crop to artboard" on the export options? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.