carl123 Posted August 18 Share Posted August 18 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 NotMyFault 1 Quote 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 More sharing options...
NotMyFault Posted August 18 Share Posted August 18 Any idea to correct sligthly rotated images? Quote 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 More sharing options...
carl123 Posted August 18 Share Posted August 18 5 hours ago, NotMyFault said: Any idea to correct sligthly rotated images? Not automatically, I only know how to do that manually Quote 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 More sharing options...
thomaso Posted August 18 Share Posted August 18 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. Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
Andy Nickless Posted August 18 Author Share Posted August 18 1 hour ago, thomaso said: If it concerns scans, the scan software may have a more or less hidden option. Yes - thank you, but we are talking about existing scans which were done years ago. Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted August 18 Share Posted August 18 2 hours ago, thomaso said: If it concerns scans, the scan software may have a more or less hidden option. 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. Quote 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 More sharing options...
thomaso Posted August 18 Share Posted August 18 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: pdf ocr ausrichten.m4v Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 Link to comment Share on other sites More sharing options...
Andy Nickless Posted August 19 Author Share Posted August 19 On 8/17/2024 at 1:34 PM, carl123 said: Scan Crop V2.afmacros 3.61 kB · 4 downloads 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. Quote Link to comment Share on other sites More sharing options...
lacerto Posted August 19 Share Posted August 19 Obsolete. Quote Link to comment Share on other sites More sharing options...
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.