Hi
I want to reduce the size of png-images. But Executing a command with the following options horribly distorted images.
nconvert.exe -ratio -resize 500 0 -o "D:\Imgs_resize\%" "d:\Imgs\*.png"
Why is the image so bad?
There are examples of bad images in attached files with "_res" in the end
Problem with resizing png images
Moderators: XnTriq, helmut, xnview
-
- Posts: 4
- Joined: Sun Jun 02, 2013 10:53 am
Problem with resizing png images
You do not have the required permissions to view the files attached to this post.
-
- XnThusiast
- Posts: 4240
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Problem with resizing png images
bunak wrote: ↑Fri Mar 22, 2019 6:19 pm I want to reduce the size of png-images. But Executing a command with the following options horribly distorted images.
Why is the image so bad?Code: Select all
nconvert.exe -ratio -resize 500 0 -o "D:\Imgs_resize\%" "d:\Imgs\*.png"
There are examples of bad images in attached files with "_res" in the end
The code in the help file for the resize option is:
Code: Select all
-resize w h : Scale width-height
w h can be percent (ex: -resize 100% 200%)
-
- Author of XnView
- Posts: 45254
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Problem with resizing png images
if you means bad quality, you need to resize in greyscale and not in binary, so please add before -resize
Code: Select all
-grey 256
Pierre.
-
- Posts: 4
- Joined: Sun Jun 02, 2013 10:53 am
Re: Problem with resizing png images
Thank you. Your recommendation helped.xnview wrote: ↑Sun Mar 24, 2019 8:07 am if you means bad quality, you need to resize in greyscale and not in binary, so please add before -resizeCode: Select all
-grey 256
-
- Posts: 4
- Joined: Sun Jun 02, 2013 10:53 am