webp and jpg - parameters for high-quality photos

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Locked
caho
Posts: 13
Joined: 2019-06-18T00:29:40-07:00
Authentication code: 1152

webp and jpg - parameters for high-quality photos

Post by caho »

Hello!

for jpg I use:
convert ^
-quality 90 ^
-filter Lanczos ^
-sampling-factor 4:4:0 ^
-define jpeg:dct-method=float ^

for webp I use:
convert ^
-quality 60 ^
-define webp:lossless=false ^

Tell me, what parameters should I use for jpg and webp? can i miss something? I need better quality for the photo

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: webp and jpg - parameters for high-quality photos

Post by snibgo »

caho wrote:I need better quality for the photo
What is wrong with the quality? Why not use "-quality 100"?

JPG is 8 bits/channel/pixel, and is lossy (it changes pixel values). For best quality, don't use JPG.

I don't use WEBP and can't advise on it.
snibgo's IM pages: im.snibgo.com

caho
Posts: 13
Joined: 2019-06-18T00:29:40-07:00
Authentication code: 1152

Re: webp and jpg - parameters for high-quality photos

Post by caho »

snibgo wrote:
2019-06-18T05:45:45-07:00
for best quality, don't use JPG.
I need to use jpg and webp. need to.
I can set the quality to 100. But there are other parameters. I do not know what to exhibit there.
filter Lanczos? or is there a better option?
sampling-factor 4:4:0? or is there a better option?

and webp?

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: webp and jpg - parameters for high-quality photos

Post by fmw42 »

You have not given full command lines for your processing. -filter lanczos does nothing unless you are resizing the image. Sorry, I am not an expert on jpg or webp arguments. And results may depend upon the input image. Perhaps you should try experimenting to see what gives you the best results.

Locked