null54

WebP Filetype (2019-10-19)

Recommended Posts

<3Dear @null54!

 

Thank you so much for the new version.  :coffee: :cake:

*Sorry! I'll be back tomorrow to give you a reputation.

Edited by Seerose

Share this post


Link to post
Share on other sites
7 hours ago, skrowl said:

Since you were able to port google's webp encoder to Paint.NET, do you think it would be possible to port their new jpeg encoder as well?

 

That encoder appears to be a standalone executable, so it should be possible to export a temporary image from Paint.NET and read the processed JPEG image from disk.

My Optimized JPEG FileType already does this with jpegtran.

  • Upvote 1

Share this post


Link to post
Share on other sites
On 3/17/2017 at 1:02 AM, null54 said:

 

That encoder appears to be a standalone executable, so it should be possible to export a temporary image from Paint.NET and read the processed JPEG image from disk.

My Optimized JPEG FileType already does this with jpegtran.

 

That's correct.  Bins are here: https://github.com/google/guetzli/releases and the only parameter is --quality Q, where Q is an integer 0 - 100, 100 being the best, similar to libjpeg.  I think the first step would be to save it to a RGB png (without alpha) temp file, run it through the exe, then delete the temp file.

Edited by skrowl

Share this post


Link to post
Share on other sites

Considering the amount of time it takes to encode images (we're talking minutes here), a Guetzli plugin seems like it would provide a very poor experience.

Not to mention the very high memory usage.

 

Sure, not all images/photos are high resolution and thus won't take so long, but still, anything more than a few seconds is pushing it.

My 2 cents.

Share this post


Link to post
Share on other sites
On 3/21/2017 at 3:29 PM, toe_head2001 said:

Considering the amount of time it takes to encode images (we're talking minutes here), a Guetzli plugin seems like it would provide a very poor experience.

Not to mention the very high memory usage.

 

Sure, not all images/photos are high resolution and thus won't take so long, but still, anything more than a few seconds is pushing it.

My 2 cents.

 

If this were always the case, no one would use .7z or .rar because they take longer.  Sometimes a better result is worth waiting for.  Besides, this is just the first version of the compressor tool, I'm sure performance will improve over time.

Share this post


Link to post
Share on other sites
Just now, skrowl said:

If this were always the case, no one would use .7z or .rar because they take longer.  Sometimes a better result is worth waiting for.

Yes, but waiting for Guetzli to encode an image would block your workflow in paint.net (meaning you can't be anything in paint.net while the image is saving).

 

It would be better to use it as an external utility at this point.

Share this post


Link to post
Share on other sites
3 hours ago, StephanB79 said:

Please include lossless compression mode in next version of Webp plugin.

 

Lossless compression mode is already included, it is used automatically when the quality slider is set to 100.

  • Upvote 1

Share this post


Link to post
Share on other sites

Hello,

 

I have a webp file that I can not open with Paint.net using the latest plugin version. An error message with a code line is shown:

WebPFileType.WebPException: Invalid WebP Image.
   at WebPFileType.WebPFileType.OnLoad(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

The file is opened and shown properly in Chrome.

 

If you would be so nice to debug this for me, the image can be downloaded here: Living Economies Expo 2017 webp logo

 

Cheers,

SF

 

Share this post


Link to post
Share on other sites

I think that might be a JPG masquerading as a webp. It appears to have both extensions in the URL.

 

xlogo_text_1.jpg.pagespeed.ic.AQcGDKnwoK.webp

Share this post


Link to post
Share on other sites

Hello,

Thank you very much for this plugin!

However, I have a small display issue on my 4K monitor (and I've set a system scale to 175% in order to see something, because 100% on a 27" was way too small compared to WUXGA on a 24" monitor).

4k.webp

Share this post


Link to post
Share on other sites
5 hours ago, Matthieu said:

However, I have a small display issue on my 4K monitor (and I've set a system scale to 175% in order to see something, because 100% on a 27" was way too small compared to WUXGA on a 24" monitor).

 

That issue should be fixed in 1.0.7.2.

  • Upvote 1

Share this post


Link to post
Share on other sites
22 hours ago, null54 said:

 

That issue should be fixed in 1.0.7.2.

Great job null54!

Here's what I see on my computer. It's totally usable right now, but you could improve it a little bit, IMHO. The sliders aren't totally expanded to the vertical separator, and you could add a small padding bottom on every label, because it's truncated by the sliders (or increase the size of the bounding box)

4k_next.webp

Share this post


Link to post
Share on other sites

Hi,

 

thanks for this useful plugin. However, there is a problem that some webp files come with the wrong file extension, e.g. I have a file sample.png which is actually a webp file with a png extension. When I try to open such a file with paint.net having the webp plugin installed, it apparently tries to open it as a png file and fails. If I rename the file to sample.webp, I can open it.

 

Chrome, IrfanView Firefox and Windows Photo Viewer (with webp plugins installed) can handle the file with the wrong extension perfectly, they seem to look at the content rather than the extension. Could the same be achieved for paint.net as well? That would make this plugin just perfect!

Edited by skr68

Share this post


Link to post
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.