Jump to content
You must now use your email address to sign in [click for more info] ×

[AfPhoto/Win] Open multiple images in proper order?


Recommended Posts

I hesitate to include this because I only know that it works on Mac, using Python 3. May not work on Windows and that is what the request is for. You may not have the same modules ... etc

It use a one + second pause, you may want to increase it. 

<rant on>  one of the wonders of universal cross platform scripting languages is that so very few of them are. <rant off>

Serial Photo opener 01.py

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

Considering all the potential problems with these things, & that sometimes even 1 second delays won't be enough, I think it probably would be simpler & maybe even faster to just open the files in the normal way & then rearrange the tabs or windows manually.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Excellent work by @Lagarto

I think my own efforts arrive at the same conclusions. I would be interested if anyone with a very wide screen could see if a wide program window would achieve more tabs. This box usually runs at 1920 x 1080px but I also tried at the max 3840 x 2160 and it made no difference, still 14 tabs. Not being fluent in C++ I used the poor man's Powershell and was quite impressed. Forget the old bat files, I found it impossible to deal with spaces in filenames and to force the use of Photo 

PhotoTabs.png

LoadToPhoto.ps1

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Link to comment
Share on other sites

5 minutes ago, Lagarto said:

But an opener script can be very useful if there is frequently a need to edit something like 10 images in the order they are selected in File Explorer / Finder.

When would it be useful to edit that many images in the order they were selected (or listed?) in Finder or Explorer & then all opened at once? I think I would almost always prefer to just open them one at a time & very rarely have more than 2-3 open at any one time.

But that's just me.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

21 minutes ago, Lagarto said:

& "C:\Program Files\Affinity\Photo\Photo.exe" "$ChildItem"

Thanks for the comment. The quotes around the $ChildItem are not required in Powershell. The $List array elements contains the full path with any spaces and it works well. I was not clear, the comment was about my attempt with a bat where I had

for %%i in (*) do (
echo %%i
if exist %%~ni.jpg start %%~ni.jpg
if exist %%~ni.jpeg start %%~ni.jpeg
if exist %%~ni.png start %%~ni.png
if exist %%~ni.tif start %%~ni.tif
if exist %%~ni.tiff start %%~ni.tiff
powershell Start-Sleep -m 1000
)
exit

and no matter how I tried to use quotes it failed. Plus it's not possible to force the use of Photo so unless that is the default program, which it is not on my system, then it fell over. Another weirdo was, I have png set to open in Irfanview and pngs opened twice. I spent far too many heartbeats trying to get it to work, after giving up and migrating to Powershell it took about 30 minutes

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Link to comment
Share on other sites

Hi guys, I just bought Affinity Photo today and I am trying to "convert" my Photoshop workflow to Affinity Photo's.

Let me know if this has been answered before:

I want to drag multiple image files into the layer panel but it seems that it is not possible?

image.png.be51881913128f3347994c7ca95b6e2c.png

 

I want to open multiple files (100+ images) as layers in AP. This is what I want to achieve:

 

Desktop: Affinity Publisher 1.8.5, Windows 10 Professional, version 2004 (19041.450), 16GB memory, AMD Ryzen 5 3600 @ 3.60GHz, RX 570
Laptop: Affinity Publisher 1.8.2, Windows 10 Home, version 2004 (19041.450), 8GB memory, Intel Core i5-4200M @ 2.50GHz, Intel HD Graphics 4600

Link to comment
Share on other sites

@Elise Kleve Create a document the size you want and then drag the files onto that document.

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

4 minutes ago, Elise Kleve said:

I want to drag multiple image files into the layer panel but it seems that it is not possible?

You can't drag files directly to the Layers panel but you can drag them on top of an existing image/document and they will appear as separate layers

Alternatively, you can use File > New Stack then ungroup the stack once it completes

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

10 minutes ago, firstdefence said:

Create a document the size you want and then drag the files onto that document.

 

9 minutes ago, carl123 said:

Alternatively, you can use File > New Stack then ungroup the stack once it completes

Oh, I see. Thanks for these information.

Desktop: Affinity Publisher 1.8.5, Windows 10 Professional, version 2004 (19041.450), 16GB memory, AMD Ryzen 5 3600 @ 3.60GHz, RX 570
Laptop: Affinity Publisher 1.8.2, Windows 10 Home, version 2004 (19041.450), 8GB memory, Intel Core i5-4200M @ 2.50GHz, Intel HD Graphics 4600

Link to comment
Share on other sites

7 hours ago, Lagarto said:

(I wrongly assumed that they get listed there alphabetically because the selection order of files was initially alphabetic.)

The python script I posted has to sort() the list of images before opening. Only then is the list alphabetic.

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

I guess I could modify the script to load according to file size, created date, modified date.

Regarding the 14 maximum number of open files before the tabs stop. I found that the size of the consolidated window as well as the overall size of the monitor played a role in this and I was able to get more than 14 tabs.

The desire to open and display files in alphabetic order was just a 'proof of concept' exercise for me.

There is something to be said for opening files as you want, in the order that they are listed in the finder or explorer window.

But.... That is a level of writing and testing I am not willing to do, partly because I can test on Mac OS 10.14 and 10.12 in python 3 only. No Windows nor any earlier versions of python.

I do wonder if perhaps symbolic links could be used/renamed to open in the order you want....

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

8 minutes ago, Lagarto said:

But as said, this order gets disrupted as soon as images from the sidelist are activated as on macOS they are placed at the first tab position, and on Windows at the last tab position. To retain the loading order, the whole tab sequence should be scrolled (similarly as e.g. in Photoshop), rather than single images inserted amidst currently showing sequence, but as this does not happen, the benefits of getting images listed in the order they are in Finder are rather limited.

Earlier I mentioned the same thing about the currently activated document being moved to the first tab position on Macs, & the 'almost' in order tab behavior too.

For this & other reasons I think the bottom line is the Affinity apps are not very well suited to opening large numbers of documents at once, but if they ever implement anything like this, it will probably be an after loading tab sort option that can be used at any time after all the files have loaded.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

6 minutes ago, Lagarto said:

True. But as files do get loaded in the Finder / File Exporer order when they are loaded on canvas (and shown on the Layers panel), I cannot see why the same logic could not be used when loading as separate images: the images do get loaded very fast so whether multithreaded or not, the speed is probably not the user's primary concern.

When you say 'loaded on canvas,' do you mean placed in the same document's canvas one at a time or something else?

As for loading very fast, I think that depends on several factors, including file size & complexity & the responsiveness of the drive. For instance, my old Mac with a conventional HDD took far longer to load a large file (one with lots of pixels) than my current iMac with a very fast SSD. But even my current iMac can take 5-6 seconds to load a really large file like a jumbo sized 18Kx18K px tiff.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

51 minutes ago, Lagarto said:

Fastness is certainly dependent on multiple factors but usability (order wished by the user) first, other things second.

If the loading time is excessive, like for opening several very large files from a relatively slow conventional HDD, usability may be close to zero until at least the file one wants to work on first has finished loading.

This is why I suggested that the tab sort order might best be implemented as a post-load option.

If you think they always will load very fast, try loading a bunch of very high resolution tiffs or the like from an external HDD attached via a USB port. A good source for these is https://esahubble.org/images/ -- most full sized originals are reasonably sized but some top out at 400-500MB & like I said, even with my very fast SSD, it takes 5+ seconds for one of these monsters to load.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

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.