Holgi666 Posted August 10, 2023 Posted August 10, 2023 ich würde gerne einen automatisierten Workflow haben bei dem ich meinen vielen Bilder (als Macro oder Stapel?) in ein Quadrat verwandle. Beispiel mein Portraitfoto hat 3000x5000px und Photo soll erkennen das es die Leinwand auf 5000px erweitern muss um 5000x5000px zu erhalten. Natürlich haben alle Fotos unterschiedliche Größen, so das Affinity selbst erkennen muss, welche Höhe / Breit vorliegt um diese zu ergänzen (Notfalls in zwei verschiedenen Automationen für Hoch- / Querformat). Ich hoffe es kommt verständlich rüber? Abschneiden möchte ich nichts.... das ganze soll dann weiter als png gespeichert werden (am Besten davor auf 2000x2000px reduziert). Geht das irgendwie? Quote
v_kyr Posted August 10, 2023 Posted August 10, 2023 1 hour ago, Holgi666 said: Beispiel mein Portraitfoto hat 3000x5000px und Photo soll erkennen das es die Leinwand auf 5000px erweitern muss um 5000x5000px zu erhalten. D.h. es soll nur die Leinwand (den canvas) erweitern und somit nicht das Bild selbst mit skalieren/verzerren? Wie soll das Bild selber dann gehandhabt werden auf dem erweiterten Canvas, immer mittig zentriert eingefügt? Falls ja (mittig zentriert), da hatte mal jemand ähnliche Anforderungen und ich hatte für so etwas mal ein Python script gezeigt was so etwas bulk mässig machen kann ... Padded images Oder aber Du benutzt halt ImageMagick für soetwas ... https://legacy.imagemagick.org/Usage/thumbnails/#pad Holgi666 1 Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
David in Яuislip Posted August 10, 2023 Posted August 10, 2023 You can use a macro in a batch job - see attached The macro will square the image then the batch job parameters can be set to resize the image as required Be aware that resizing images usually requires sharpening afterwards so you could use a second batch job to apply a sharpening macro Personally I'd use Imagemagick to do everything in one pass SquareImage.afmacro Holgi666 1 Quote 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
v_kyr Posted August 10, 2023 Posted August 10, 2023 2 hours ago, David in Яuislip said: You can use a macro in a batch job - see attached The macro will square the image then the batch job parameters can be set to resize the image as required ... I doubt that, as the OP want's a solution which autdetects the longer side (w or h) of an image and then squares it accordingly to the longer side value. And the images can initially have different sizes and orientations here. At the end the whole should be saved as an 2k x 2k px PNG. Holgi666 1 Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
Holgi666 Posted August 11, 2023 Author Posted August 11, 2023 9 hours ago, v_kyr said: I doubt that, as the OP want's a solution which autdetects the longer side (w or h) of an image and then squares it accordingly to the longer side value. And the images can initially have different sizes and orientations here. At the end the whole should be saved as an 2k x 2k px PNG. Yes you're right, that is exactly what i need.👍 Quote
Holgi666 Posted August 11, 2023 Author Posted August 11, 2023 12 hours ago, David in Яuislip said: You can use a macro in a batch job - see attached The macro will square the image then the batch job parameters can be set to resize the image as required Be aware that resizing images usually requires sharpening afterwards so you could use a second batch job to apply a sharpening macro Personally I'd use Imagemagick to do everything in one pass SquareImage.afmacro 987 B · 1 download i work well, thank you very much,.... perfect Quote
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.