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

Crop White Space From Around Multiple Images


Recommended Posts

15 minutes ago, NotMyFault said:

@carl123 nice job!

could you give a brief description how the macro works?
from the forum post i assume it use flood selection ad the crop,(to selection), but how do you determine the position where you sample the color?

The first V2 macro I used did use Flood Select at the top-left of the image but that was always going to be problematic.

So, for the second V2 macro I used a duplicated background layer with a Threshold Adjustment layer to better separate the image from its white border. I then used Select > Tonal Range > Select Highlights to select the white border. The surrogate duplicated background layer could then be deleted leaving the original background layer with the selection still in place which could then be deleted

 

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

Any idea to correct sligthly rotated images? 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

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.

My posts focus on technical aspects and leave out most of social grease like „maybe“, „in my opinion“, „I might be wrong“ etc. just add copy/paste all these softeners from this signature to make reading more comfortable for you. Otherwise I’m a fine person which respects you and everyone and wants to be respected.

 

Link to comment
Share on other sites

5 hours ago, NotMyFault said:

Any idea to correct sligthly rotated images? 

Not automatically, I only know how to do that manually

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

6 hours ago, NotMyFault said:

Any idea to correct sligthly rotated images? 

If it concerns scans, the scan software may have a more or less hidden option.

Bildschirmfoto2024-08-18um15_32_53.jpg.8373d08a99411551812f4b0b80d4f2f8.jpg

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

2 hours ago, thomaso said:

If it concerns scans, the scan software may have a more or less hidden option.

Bildschirmfoto2024-08-18um15_32_53.jpg.8373d08a99411551812f4b0b80d4f2f8.jpg

Sorry I asked imprecise. I asking for mass/batch correction of rotated scans in Photo, and for images where rotation might differ for every image.

i have some moonshot ideas how it could work, e.g. using some filter magic to enable/disable perspective distortion filters (for rotation) based on detecting white edge areas on one side only.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

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.

My posts focus on technical aspects and leave out most of social grease like „maybe“, „in my opinion“, „I might be wrong“ etc. just add copy/paste all these softeners from this signature to make reading more comfortable for you. Otherwise I’m a fine person which respects you and everyone and wants to be respected.

 

Link to comment
Share on other sites

1 hour ago, NotMyFault said:

I asking for mass/batch correction of rotated scans in Photo, and for images where rotation might differ for every image.

Not in APhoto but a simple batch correction may work via Acrobat -> OCR. Note, since the feature actually is meant to find horizontal lines of text, it does not work as desired if the image subject contains a clear horizontal axis that is not parallel to the image edges, like the table image in this examples:

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

On 8/17/2024 at 1:34 PM, carl123 said:

I just want to thank those who have tried to assist with this problem - and to say that I've settled on the above Macro.
It does a great job with the vast majority of images which require a white border removing.
 

Obviously special thanks go to Carl123 for his patient help.
(As you predicted, the more aggressive macro was just a bit too keen - and sometimes clipped useful material away.).

The experience has taught me that I must spend time learning a lot more about Affinity Photo (and the rest of the suite) as there's a huge amount I was totally unaware of.

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.