简体   繁体   中英

Reduce size of a .png image without losing transparency

Basically, I'd like to resize or resample a.png image (in order to reduce its file size) and yet retain it's transparency.

Anybody got an idea how best to go about this?

Thanks.

You can use paint.net , it is a free tool. Although it is pretty basic, it does the job.

Go to Image > Resize

Stumbled upon this thread and found the following site that does exactly what is requested: https://onlinepngtools.com/resize-png

What graphics program are you using?

Photoshop does this by simply going thru IMAGE > IMAGE SIZE and resizing. Transparency is not affected. I'm sure Paint Shop Pro does the same

I know this is an old question, but the answer that worked for me was to use Inkscape.

  1. Start Inkscape (free on Inkscape.org).
  2. File -> Import... (Ctrl+I) the PNG file you want to resize (defaults on import dialog are ok).
  3. With the image you just imported selected, select File -> Export PNG image... (Shift+Ctrl+E)
  4. In the Export PNG Image tool pane, click the Export As... button to set the output filename and location.
  5. In this same tool pane, set the image size using width/height or pixels.
  6. In this same tool pane, click the Export button to create the output file.

This worked for me, hope it helps someone else.

Providing the image you have created / have been working on is transparent in the first place, using the "Resize" or "Resample" tools in any major image editing package (eg PhotoShop, PaintShop Pro and so on) should not affect (or lose) the transparency at all.

I use PaintShop Pro (X6, 64 Bit) myself and typically find that the "PNG Optimizer" option offers more options along these lines (than the default "Save As >.png" route).

Hope that this helps (specific to PaintShop Pro Users) in relation to the source question.

While I was waiting for the downloads of other image editing softwares, I tried Microsoft Power Point and succeeded in preserving the transparency. Drag the image inside any slide, crop or resize, then save as a new picture as.png. You can drag the image back in ppt to confirm the transparency is maintained

The complete Autodesk Sketchbook is now out for free including all the previous premium features such as resizing an image.

You do it as you would in paint by clicking on Image > Image Size... and then you can save as a.png without losing transparency.

Image size can be reduced by reducing number of colors and there are online tools to do this.

Try these..Hope they solve your problem

https://tinypng.com/

http://pngcrush.com/ and

http://tools.dynamicdrive.com/imageoptimizer/ --It provides more output images with different number of colors. However, smoothness will be effected, take care.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM