Jump to content

Recommended Posts

Posted

Hey, 

I want to know if it is possible to make this process faster. I am exporting multiple layers as separate images, first by resizing the images in the photo persona, then going to export persona and turning into slices. The problem is that I then have to manually change all the blue boundary boxes to fit the image size too. Is there a faster / automatic way to do this?

Thanks

Screenshot 2024-08-07 at 14.29.11.png

Posted

Hi @jasblack, Welcome to the Affinity forums!

I might misunderstand your problem but do you want to resize multiple images to the same height or width?
If yes, a macro might help to resize a folder of images without the need to place them in an Affinity document.

Or is your issue that various layers of different sizes exceed the size of the canvas after you scaled them individually?
If yes, menu Document -> Unclip Canvas in the Photo Persona could be wanted.

Or something else… ?

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted

Hey @thomaso thanks for replying. 

Yes I do want to resize many images to the same width and height, but they are all irregular, so I was first framing them to my liking within Affinity Photo.

The issue comes when then trying to export all at once, I resolved it manually this time, but I find it quite annoying after manually placing and composing all images, I then have to do another manual task in the 'Export persona' tab. I was just wondering why there is not a "Fit all to image boundary" option or such. 

Posted
2 hours ago, jasblack said:

The problem is that I then have to manually change all the blue boundary boxes to fit the image size too.

21 minutes ago, jasblack said:

Yes I do want to resize many images to the same width and height, but they are all irregular, so I was first framing them to my liking within Affinity Photo.

Sorry, I still don't get your point. – For what purpose do you need to "manually change all the blue boundary boxes"? The visible area for all layers gets set in the document/canvas size, the visible area for each slice gets set in the Export Persona (usually automatically in the layer size or optionally in an adjusted, cropping size if wanted), and the size for export of all slices get set in the Slices Panel respective saved in an according Export Preset and applied to all slices.

  • Did you "first frame" every image to define the wanted section/detail for export?
  • Do the slices in your screenshot correspond for each image with its wanted export area (regardless of the black appearance)?
  • Do all slices have the wanted setting to result in the same width or height (e.g. "2500w")?

If yes, go to the Photo Persona and choose menu Document -> Unclip Canvas. Then no slice should appear cropped (black) in the Export Persona and each slice would export with the wanted contents and all in the same width or height.

48 minutes ago, jasblack said:

I was just wondering why there is not a "Fit all to image boundary"

What "image boundary" do you mean:

  • The individual boundary of each placed image resource,
  • the boundaries of your scaled layers in the Photo Persona,
  • the boundaries of the canvas in your document?
  • the boundaries of every slice as shown in your screenshot,
  • or the boundary of the exported images?

If you set the layers, the eventually slice cropping, and the value (h or w) of the export size as desired, each exported image will be fitted to the boundary of the specified dimensions.

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
3 hours ago, jasblack said:

I want to know if it is possible to make this process faster. I am exporting multiple layers as separate images, first by resizing the images in the photo persona, then going to export persona and turning into slices. The problem is that I then have to manually change all the blue boundary boxes to fit the image size too. Is there a faster / automatic way to do this?

I am guessing you want to have the individual slices be the size of the Document/Canvas area. I have guessed that the size of the Document/Canvas is the orange area in my screenshot of your screenshot, am I close to correct?

ScreenShot2024-08-07at9_55_08AM.png.98e934ca4b4165dc15089a999110b45f.png

This seems to be a simple ask. Give me each layer as a slice whose dimensions are restricted to the dimensions of the Document/Canvas. However I have never found a simple way to do this. Your solution of manually resizing each slices size is the only way to do this.

What you want (and what I too want) is to have the Document's dimensions act as a sort of cookie cutter for the individual layers which you have made layers from.

It would be quite useful to be able to do this. A fair number of questions about this non existent functionality have been asked by people who want to use Designer in an animation workflow. They need their slices to be the size of the Document/Canvas even if the layer is larger or smaller than the Document/Canvas.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
20 minutes ago, thomaso said:

What "image boundary" do you mean:

  • ...
  • the boundaries of the canvas in your document?
  • ...

If you set the layers, the eventually slice cropping, and the value (h or w) of the export size as desired, each exported image will be fitted to the boundary of the specified dimensions

I am guessing that @jasblack is wanting the Canvas dimension. I am unaware of any easy way to achieve this.

What do you mean by "If you set the layers,..."?

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
49 minutes ago, Old Bruce said:

I am guessing that @jasblack is wanting the Canvas dimension. I am unaware of any easy way to achieve this.

For what purpose or need? – If the Canvas shows all contents of all layers (-> 'unclip canvas') the scaling of each placed image with its individual size happens on export to the wanted size. There is no need or advantage to scale each images to exactly fit the canvas boundaries before export.

49 minutes ago, Old Bruce said:

What do you mean by "If you set the layers,..."?

It seems the OP wants to crop some of the placed images, for instance to exclude a specific image area from export or simply to affect the visible area for placed images with a different aspect ratio than the required export size. – So, my "If you set the layers,..." (image -> layer -> slice) refers to this aspect of layer rescaling or cropping. That's at least how I understood the OP's info about "first framing them to my liking":

2 hours ago, jasblack said:

Yes I do want to resize many images to the same width and height, but they are all irregular, so I was first framing them to my liking

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted

Hey @thomaso

Sorry if I was not using the right words. I am not an advanced user of Affinity, hence the questions.

Essentially I am trying to make all of the outputs 1920x1080, I pull a load of images into Affinity that are different sizes, then place them in the composition that I want. Then I want to export each layer as a separate image - with slices... But the problem is that if I just export it without changing those Blue boxes to fit the image size, then it ends up with really weird outputs. See the attached examples. I have to manually move the corners of each image to fit the image size otherwise there is this issue. Just wanted to know if there was an automatic way to do this?

Screenshot 2024-08-07 at 20.34.18.png

Screenshot 2024-08-07 at 20.34.08.png

Screenshot 2024-08-07 at 20.39.12.png

Posted
1 hour ago, jasblack said:

Sorry if I was not using the right words. I am not an advanced user of Affinity, hence the questions.

No, it wasn't your fault, I was totally on the wrong track! Sorry! – And "the right words" seem to be quite difficult in this case of various types of sizes without clear names for each.

4 hours ago, Old Bruce said:

What you want (and what I too want) is to have the Document's dimensions act as a sort of cookie cutter for the individual layers which you have made layers from.

@Old Bruce helped to point me in the new direction, though I didn't initially understand the "cookie cutter" and "layers which you have made layers from", maybe influenced by my limited English skills.

It is indeed a pity that slices can't get cropped on export to the canvas dimensions (as an option at least) but insist in the full area of the auto-generated slices but in the export size that is wanted for the visible contents, not the white slice space.

My workaround would be to mask each image (or group of layers) with a rectangle shape. The rectangle sizes are at least easier to edit than slices in the Export persona. With cmd-J you can first create the required number of rectangles and then drag them one by one on the image layer thumbnails. I don't know of a way to do it for more than one image at a time.

The multiple unmasked vs. the limited masked sizes and the canvas:

1layoutunmasked.jpg.4cca1c49f07a75b211bd3de285213d40.jpg

1-layout.jpg.86bdd65ceb8068924c01ccb283f3640f.jpg

Clean slice appearance, each in canvas size.

2-slices.thumb.jpg.4423b37daf38f6e4bd63149e944ed515.jpg

The exports:

3-export.jpg.989669ccfac64f2266380b279e27f684.jpg

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
1 hour ago, thomaso said:

My workaround would be to mask each image (or group of layers) with a rectangle shape. The rectangle sizes are at least easier to edit than slices in the Export persona. With cmd-J you can first create the required number of rectangles and then drag them one by one on the image layer thumbnails. I don't know of a way to do it for more than one image at a time.

 

I too have had to resort to that, but as you describe it, it is still a lot of work for something which could be so simple. A Crop to Canvas size option.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
6 minutes ago, Old Bruce said:

I too have had to resort to that, but as you describe it, it is still a lot of work for something which could be so simple. A Crop to Canvas size option.

Did you ever try to use Symbols for the cropping rectangles, to make a change of the canvas size easier?

If I had many images to crop + rescale to one size I would not choose APhoto. If it would have to be Affinity I would use APub instead: Place one image per page, scale/move each image as wanted and export all pages as images in the required resolution. No need to crop'n'slice at all.

Actually I'd expect this 'crop to canvas' output as the default for an export of auto-generated slices, … and the version with blank backgrounds + canvas contents in differing sizes as an optional feature. I can't even think of any use case for this export method, can you?

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
Just now, thomaso said:

Did you ever try to use Symbols for the cropping rectangles, to make a change of the canvas size easier?

Still have to place each symbol on each layer to crop.

We are not wanting to change the size of the Canvas. We want to crop to the Canvas size.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

Which applications are available to you?
Affinity Designer only
1. Set up artboard to size you need 1920 x 1080 (px or mm!)
2. Place your image into the artboard. (you could add another image onto Artboard using place but that is just extra layers!)
Use the artboard to define the dimensions of your image
3. Adjust position and scaling using Image + dropdown on context toolbar
4. Export in Export Persona Using the artboard as the slice!

With Publisher you have a more options and controls over the placement of each image
1. Create new file to size required 1920 x 1080 + res +margins
2. On page (Master or just page) add image placement and adjust the requirements for
a. Properties (Scale for Max fit)
b.  Add a border if you wish
3. Duplicate the page accroding to the number of images you wish to add!
4. Place you images into image placement box and adjust as necessary.
5. Save and close file

To get the export Persona you need Designer
1. Create same file dimensions in Affinity Designer
2. Create Artboard
2. Use file > Place to import the Publisher file
4. Place you file onto the artboard and adjust for effect
5. Duplicate the artboard and name
6. Use the options on the context toolbar to adjust the image | Spread number | Page Box
7. Go to Export Persona and export your files with desired requirements using the artboard as slices
 

 

Affinity Version 1 (10.6) Affinity Version 2.6.3  All (Designer | Photo | Publisher)   Beta; 2.6.4.3439
OS:Windows 10 Pro 22H2 OS Build 19045.6035+ Windows Feature Experience Pack 1000.19060.1000.0
Rig:AMD FX 8350 and AMD Radeon (R9 380 Series) Settings Version 21.04.01 
Radeon Settings Version 2020
20.1.03) + Wacom Intuous 4M with driver 6.3.41-1

 

 

Posted
54 minutes ago, Old Bruce said:

Still have to place each symbol on each layer to crop.

True. The symbol would have an advantage just in case you would want to use a different canvas size after you placed the images + cropping rectangles already. In that case all nested rectangles could get adjusted in one step.

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted

Not sure if i understand the request correctly.

If you want to crop all images at the canvas select all layers use rasterize and trim.

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
4 hours ago, NotMyFault said:

select all layers use rasterize and trim

A pretty time-saving workaround* for V2. (in V1 it had to be done layer by layer).

* I haven't even thought of a destructive solution to this problem... and for an app that focuses on non-destructive workflows, I just wouldn't expect the expected non-destructive way to not work but require the destructive way, especially in the Export Persona which was developed to increase efficiency.

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted

Great to hear this helped. I filed a feature request in 2021 and was more than happy when it was added in 2023 in V2.

 

 

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.