<div dir="ltr">The only trouble I see with thumbnail generation is the speed. It would be great to see the speen benchmarks of saving a PNG of each size. People are complaining about Krita saving too slow :( I even heard a wish (during the KomMissia) to disable any preview and mergedimage.png saving into .kra to make the saving quicker.<br><br><br><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 6, 2016 at 3:44 PM, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 6 Jun 2016, Alvin Wong wrote:<br>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is that needed? I would imagine whatever plugins or programs would<br>
already have known the absolute size they want in pixels, independent<br>
of the dpi, and could just automatically take the closest thumbnail or<br>
the mergedimage and scale it down accordingly.<br>
</blockquote>
<br></span>
I don't know... Hidpi and Retina is still really confusing me across the board.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Perhaps you can also add a thumbnail of size 2048x2048 but I wonder<br>
how much it would add to the file size...<br>
<br>
By the way I remember seeing in the Krita git repo some scripts which<br>
look like plugins for certain programs to extract the thumbnail, but I<br>
can't seem to find them now. Does anyone know, other than the Windows<br>
shell extension, what other file managers or programs currently<br>
supports extracting thumbnails from Krita files/<br>
</blockquote>
<br></span>
Code for Qt applications is in the kimageformats repo now, I moved<br>
that some time ago. There are also scripts for nautilus and gnome.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best Regards,<br>
<br>
Alvin<br>
<br>
<br>
2016-06-06 14:54 GMT+08:00 Boudewijn Rempt <<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think we can easily do this: but maybe we should at the same time<br>
add thumbnails with a @2 extension to prepare for hidpi and retina<br>
displays?<br>
<br>
<br>
On Mon, 6 Jun 2016, Alvin Wong wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I would like to suggest Krita add (uncropped) thumbnail images of<br>
different sizes to the file to allow faster extraction of thumbnails<br>
by external applications.<br>
<br>
There is currently one preview.png which is at maximum 256x256, so<br>
generating thumbnails larger than that would require scaling down from<br>
the mergedimage.png which could be very large and may take a<br>
comparatively long time to process. Even though the actual time per<br>
file might not be much, it could add up for a lot of files.. Also, the<br>
preview.png is cropped to the non-transparent region<br>
(<a href="https://bugs.kde.org/show_bug.cgi?id=363968" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=363968</a>) which makes things a bit<br>
weird and inconsistent.<br>
<br>
I think having thumbnails for the sizes (maintaining aspect ratio) of<br>
256x256 and 1024x1024 would suffice, but boud suggested having 512x512<br>
might be nice too. Adding in these sizes means that, for thumbnails<br>
equal to or below the available sizes, they can be extracted and<br>
optionally scaled down from those instead of scaling down from the<br>
mergedimage.png. Obviously, sizes larger than that would still require<br>
using the mergedimage.png, but hopefully it would be quite rare for an<br>
application to request for thumbnails larger than 1024x1024... (4K<br>
displays aren't popular yet... right?)<br>
<br>
For the record, according to this MSDN page<br>
<br>
(<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/cc144118(v=vs.85).aspx" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-us/library/windows/desktop/cc144118(v=vs.85).aspx</a>)<br>
Windows asks for the sizes 32/96/256/1024.<br>
<br>
I am asking for this as the developer of the Windows Shell Extension.<br>
<br>
Any suggestions?<br>
<br>
Best Regards,<br>
<br>
Alvin<br>
_______________________________________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br>
</blockquote>
<br>
<br>
--<br>
Boudewijn Rempt | <a href="http://www.krita.org" rel="noreferrer" target="_blank">http://www.krita.org</a>, <a href="http://www.valdyas.org" rel="noreferrer" target="_blank">http://www.valdyas.org</a><br>
_______________________________________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br>
</blockquote>
_______________________________________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br>
</blockquote>
<br>
-- <br>
Boudewijn Rempt | <a href="http://www.krita.org" rel="noreferrer" target="_blank">http://www.krita.org</a>, <a href="http://www.valdyas.org" rel="noreferrer" target="_blank">http://www.valdyas.org</a><br>
_______________________________________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Dmitry Kazakov</div>
</div></div>