Jump to content

Photoshop Migration; How to handle paths


Recommended Posts

The one thing that's keeping us from completely migrating to Affinity Photo are Photoshop paths. We have over a thousand layered tiff files with paths on them. I haven't been able to figure out a way to do a batch convert of these paths into something that Photo 2 could use. Is there anything I'm missing? I understand the paths have to be converted to Shape vectors in order to be imported into Photo. Is there any other solution to this?

 

TIA

Link to comment
Share on other sites

Don't know about batch converting, and don't know about the CC versions, but it's possible via Illustrator.
Using PS CS5.5 and AI CS5:

  1. in PS: File > Export > Paths To Illustrator
  2. in AI: open with settings so that it has the same artboard size as the PS image
  3. in AI: give the paths a stroke, whatever, like 0.25 pt, doesn't matter, but they need a width, otherwise the AI PDF stream may apparently ignore them
  4. save as AI document with PDF stream
  5. open the converted AI document in Photo, do not place it, you want the PDF vectors to be editable
  6. drag & drop or place the TIF/PSD image onto the Photo canvas and align it with the already opened curve artboard; note that AI may have saved the doc with non-integer pixels, so make sure ppi and integer pixel values match all the way through for best alignment
  7. save as afphoto

That test scenario has worked for me right now.
Actually that's in Affinity 1, I'm not even at my v2 installation right now.

The Adobe part of the conversion can likely be scripted, as both PS & AI are highly scriptable.
The Affinity part can be only partially scripted: Place Image appears to be recordable by macros. On Mac, it's also possible to do a couple things via UI scripting, especially executing all main menu commands is fairly easy.

(Speaking of which: it's not that PS and AI themselves can actually meaningfully interact a lot, haha. I've always found those Adobe inter-app "workflows" a major p.i.t.a.)

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

50 minutes ago, loukash said:

The Affinity part can be only partially scripted: Place Image appears to be recordable by macros.

For me on my Mac, Place Image in a macro works fine in V1 but I get an error message in V2 saying it can't be done. I think it is probably a bug.....

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

Link to comment
Share on other sites

I was actually just thinking that placing images can be likely done completely via UI scripting. So for example as long as the converted AI doc and the TIFF image file names are kept identical, you could use AppleScript variables and first open, then place them via the MacOS "Open" dialogs. 

For me as a "hobby scripter" it might likely take quite a few hours to figure it out, but if you have thousands of files to convert, then it still will be a timesaver. In any case, I have done things like this in other apps before.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

1 hour ago, lacerto said:

I am not sure if Adobe object models are somehow crippled on macOS and AppleScript

Doesn't look "crippled" to me in AppleScript:

pscs5_applescript_dictionary.png.5dce11dded5d455642d9566b704c97f1.png

aics5_applescript_dictionary.png.5d1b73b22b2463fd9927058a8ba80ff2.png

1 hour ago, lacerto said:

but I think the complete object models are available also for Javascript.

Yep:

pscs5_javascript_dictionary.png.9320332149b78283206bb795f1e22c4d.png

aics5_javascript_dictionary.png.800701681f1ade2111fc38f5e7e12cfc.png

But what I meant by "meaningfully interact" and "Adobe inter-app 'workflows'" is the lack of seamless interoperability between the respective applications and their formats, without workarounds like "export" and scripting.
Unlike Affinity, as we well know, with its "de-facto-single-app" and "de-facto-single-document-format" interoperability workflow, aka StudioLink, aka "File > Edit In…".
Anyway, that's off topic. :) 

 

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

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.