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

Crop to Opaque Macro - for straightened or rotated images


carl123

Recommended Posts

Crop to Opaque Macro - for straightened or rotated images

After using the Crop Tool to just straighten an image you are left with transparent areas on all 4 sides. 

This macro will "crop to opaque" to get rid of those transparent areas

It will also work on an image which has been rotated around its center to, say, straighten it

Works on a single layer document (e.g. a jpg image) which is still rotated (i.e. do not rasterize the layer after rotating it)

Macro may be useful to those that have to do a lot of straightening of images or in a batch file where hundreds of the same size images need straightening by the same (rotation) amount.


The macro has about 7 steps unticked and new ones added as it was crashing on documents of about 20,000px (width) due to the inPainting steps so had to do that part another way.

This is not a generic "Crop to Opaque" macro - it will only work on images that have been straightened via the Crop Tool or rotated on the canvas.

 

Crop to Opaque after Straightening or Rotating - V3.afmacros

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

@carl123  thank you!   What a nice Christmas gift for everyone!


24" iMAC Apple M1 chip, 8-core CPU, 8-core GPU, 16 GB unified memory, 1 TB SSD storage, Ventura 13.6.  Photo, Publisher, Designer 1.10.5, and 2.3.
MacBook Pro 13" 2020, Apple M1 chip, 16GB unified memory, 256GB  SSD storage
,  Ventura 13.6.   Publisher, Photo, Designer 1.10.5, and 2.1.1.  
 iPad Pro 12.9 2020 (4th Gen. IOS 16.6.1); Apple pencil.  
Wired and bluetooth mice and keyboards.9_9

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.