Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Ganesha
Posts: 23 Joined: 2014-05-20T06:40:01-07:00
Authentication code: 6789
Post
by Ganesha » 2016-04-25T03:19:46-07:00
I use a jar
http://www.java2s.com/Code/Jar/j/Downlo ... 085jar.htm for resizing images like jpeg,png. This jar gives a good quality of image after resize which I feel better than that of imagemagick's command
Code: Select all
convert test.jpg -resize WxH> testresize.jpg
Is there any other way of resizing image to produce the same quality of the jar using convert command?
GeeMack
Posts: 718 Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA
Post
by GeeMack » 2016-04-25T04:23:01-07:00
Ganesha wrote: Code: Select all
convert test.jpg -resize WxH> testresize.jpg
Is there any other way of resizing image to produce the same quality of the jar using convert command?
Maybe try this...
Code: Select all
convert test.jpg -resize WxH> -quality 100 testresize.jpg
Ganesha
Posts: 23 Joined: 2014-05-20T06:40:01-07:00
Authentication code: 6789
Post
by Ganesha » 2016-04-25T05:06:24-07:00
On doing so, what filter it uses?
Bonzo
Posts: 2971 Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England
Post
by Bonzo » 2016-04-25T07:35:43-07:00
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2016-04-25T08:03:16-07:00
I wouldn't use JPEG as output to compare resizing from two different systems.
Perhaps you can show us an example input and output where you think the java version is better.
mikmach
Posts: 42 Joined: 2015-02-06T07:50:43-07:00
Authentication code: 6789
Post
by mikmach » 2016-04-26T04:36:23-07:00
By default IM jpeg -quality is somewhere between 75 and 85. Try passing 90 or 95 (100 is overkill in most cases). Also to improve look of files with sharp edges don't forget about '-sampling-factor 1x1'.