Jump to content

How to crop outer transparent space of an image automatically


LuNaTiC

Recommended Posts

Ok I know this maybe very silly question and already supported by the app itself but currently I cannot figure out how to crop outer transparent space of an image automatically which scales up the original image without losing the quality. I know I can achieve this by messing around with tools but I'm looking for a way to automatically do this. If I remember correctly the feautre I'm looking for was avaiable in Gimp. Here's the detailed explanation of what I want to be done automatically by paint.net:
KN52QA.png

Link to comment
Share on other sites

53 minutes ago, LuNaTiC said:

I cannot figure out how to crop outer transparent space of an image automatically which scales up the original image without losing the quality.

 

The feature of cropping the image to remove the transparent edges is called Image Trimming. There's no way to do it automatically in Paint.NET.

I don't know about the scaling aspect you've mentioned; your example image doesn't even demonstrate that.

  • Like 1

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

59 minutes ago, toe_head2001 said:

 

The feature of cropping the image to remove the transparent edges is called Image Trimming. There's no way to do it automatically in Paint.NET.

I don't know about the scaling aspect you've mentioned; your example image doesn't even demonstrate that.

I guess that's because the image host site does not cover transparency but instead it shows transparency as white background, as this page's background is white too it might have beeen hard to understand. Anyway what I want from paint.net is cropping the image and resize it to either maximum X or Y axis of the original element, for example let's suppose that tube's original Y size is 200 , X size is 50 excluding the outer transparency space and the whole image is 400x400, in this case I want paint.net to automatically resize the image to 200x200 so the original tube elemt won't be cropped but only the outer transparency space would be cropped. Trimming feauture kind of does this but I have to select "magic wand" tool and make some arrangements then every time. So I'm looking for a way to do this process with few clicks, is there plugin you know for that?

Edited by LuNaTiC
Link to comment
Share on other sites

200x200 was just a supposing, what I want in other words is to minimize the image by focusing the center, cropping outer transparent space automatically. Here is an example which can be done in gimp, transforms 800x800 image into 143x577 (577x577 for 1:1 aspect ratio). You may tell me to use gimp then but I usally use paint.net in my editings so it would be cool to have this feature in paint.net, too.

https://thumbs.gfycat.com/FairFlawlessChupacabra-mobile.mp4

Edited by LuNaTiC
Link to comment
Share on other sites

Hi @LuNaTiC

@BoltBait just beat me. His way will work.

Another way of doing this;

Use the rectangle select tool to size the area you want to keep.

Hit Ctrl-C to copy the image.

Select file new (It will be the same size you selected) then Ctrl-V to paste.

I think this will better address your needs.

Just another way of doing the same thing demonstrating the flexibility of Paint.Net. :)

 

 

  • Like 2

PaintNetSignature.png.6bca4e07f5d738b2436f83d0ce1b876f.png

Link to comment
Share on other sites

I have added an mp4/gif file in my previous post that demonstrated what I wanted to do in paint.net but for some reason it is not viewable, edited that post.
Anyway you guys already got what I wanted
@BoltBait yes it does the job thanks.
@AndrewDavid that method isn't useful for me since I would draw the rectangle by myself manually which could lead eliminating the pixels I wanted to keep, thank you anyways.

Edited by LuNaTiC
Link to comment
Share on other sites

  • 8 months later...

@BoltBait I perform the steps you mention above

I click the transparent area with the magic wand

then ctrl+I to invert

then ctrl+shift+x to crop to selection

 

Is there a plugin or a way to just "crop to opaque"

I know I am being lazy, but I do this a lot after using gravity to delete unwanted areas of things, so my images are rectangular, and I just want to crop to the opaque area

Thanks

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.

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.

×
×
  • Create New...