[digiKam-users] Version 6 idea: store thumbnails as JPEG instead of PGF

Tac Tacelosky tacman at gmail.com
Wed Mar 14 14:47:48 GMT 2018


Thanks, Gilles,

Poking around the source code, I see that at one point there was some
support for storing JPEG thumbnails, but it's been hard-coded to PGF files:

https://github.com/KDE/digikam/blob/9330f9c1e25ce754f374abac840bef2521a032ca/libs/threadimageio/thumbnailcreator.cpp#L737-L762

Unfortunately, my C skills are ancient, and my sys-admin skills are pretty
weak as well, so I haven't been able to get the PGF console command to work
on my 64-bit Ubuntu installation.  I think I've compiled the pgf library
okay, but the pgf console tool fails on finding freeimageplus, even after
installing it (well, I think I installed it).

So I'll keep playing around with alternative solutions to at least
prototype my idea.

Has anyone else worked on a web-based interface to DigiKam?  I'll like to
brainstorm about it, is another thread on this forum the right place to
start?

Tac


On Sun, Mar 11, 2018 at 1:01 PM, Gilles Caulier <caulier.gilles at gmail.com>
wrote:

> Hi,
>
> Typically, using JPEG as a really disadvantage about thumbnail quality,
> especially with Hdpi screen. For that, I'm not favorable to propose JPEG as
> thumbs storage in DB.
>
> But i still open. Your request is to create a digiKam back-end to a
> web-based view photo collections. There are other standards for the web,
> emerging step by step, based on wavelets compression, as Webp or Heic.
>
> https://www.cnet.com/news/google-offers-jpeg-alternative-for-faster-web/
> https://www.cnet.com/news/google-mozilla-av1-photo-
> format-could-outdo-aging-jpeg/
>
> Both Webp and Heic are supported by ImageMagick, so PHP must do the
> conversion in background :
>
> https://www.imagemagick.org/script/formats.php
>
> In other words, we need space optimization, quality and speed. For the 2
> first ones, JPEG is not the right solution.
>
> Else about PGF, which is not supported by ImageMagick, a simple converter
> exists with libpgf, and can be called easily by PHP on you web server...
>
> https://sourceforge.net/p/libpgf/code/HEAD/tree/trunk/pgf/
>
> Best
>
> Gilles Caulier
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20180314/97a36cd4/attachment.html>


More information about the Digikam-users mailing list