Cannot find the JpegLossLess kipi plugin

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot find the JpegLossLess kipi plugin

Bast!
Hi

I cannot find the Kipi plugin JpegLossLess in Digikam and therefore have
only the lossy rotation of any kind. The documentation refers to this
plugin but I cannot find it.

I am running kubuntu 12.04.04 LTS, Kubuntu 13.10 and Ubuntu 13.10 in a
VM, updated the kipi plugins and digikam to 3.5.0 on all three.
Setting up kipi-plugins-common (4:3.5.0-0ubuntu10) ...
Setting up kipi-plugins (4:3.5.0-0ubuntu10) ...

Even the jpeglossless plugin was installed, I think:
/usr/lib/kde4/kipiplugin_jpeglossless.so
/usr/share/kde4/services/kipiplugin_jpeglossless.desktop
/usr/share/locale/es/LC_MESSAGES/kipiplugin_jpeglossless.mo
...

But it is not shown in the Configuration of Digikam under Kipi-Plugins.
How do I get the lossless JPEG rotation to work under digikam?

Thanks in Advance
Bast!
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find the JpegLossLess kipi plugin

Gilles Caulier-4
JpegLossLess plugin have been disabled in digiKam since a long time. A
core solution is used instead and is shared with BQM. All functions
previously available with JPegLossLess still here, but without to use
the plugin.

Best

Gilles Caulier

2014-04-13 17:45 GMT+02:00 Bast! <[hidden email]>:

> Hi
>
> I cannot find the Kipi plugin JpegLossLess in Digikam and therefore have
> only the lossy rotation of any kind. The documentation refers to this
> plugin but I cannot find it.
>
> I am running kubuntu 12.04.04 LTS, Kubuntu 13.10 and Ubuntu 13.10 in a
> VM, updated the kipi plugins and digikam to 3.5.0 on all three.
> Setting up kipi-plugins-common (4:3.5.0-0ubuntu10) ...
> Setting up kipi-plugins (4:3.5.0-0ubuntu10) ...
>
> Even the jpeglossless plugin was installed, I think:
> /usr/lib/kde4/kipiplugin_jpeglossless.so
> /usr/share/kde4/services/kipiplugin_jpeglossless.desktop
> /usr/share/locale/es/LC_MESSAGES/kipiplugin_jpeglossless.mo
> ...
>
> But it is not shown in the Configuration of Digikam under Kipi-Plugins.
> How do I get the lossless JPEG rotation to work under digikam?
>
> Thanks in Advance
> Bast!
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Bast!
Hi Gilles

The current functions are NOT lossless! They have small but measurable
difference. In Gimp I put the original and the rotated version in two
layers on top of each other, chose difference as layer option and
adjusted the color values until i saw the difference.

When compared to the really lossless rotation of irfanview I can say
that both batch rotation and the rotating buttons of Digkam do in fact a
_lossy_ rotation.

What am I doing wrong?

Bast!

Am 13.04.2014 21:13, schrieb Gilles Caulier:

> JpegLossLess plugin have been disabled in digiKam since a long time. A
> core solution is used instead and is shared with BQM. All functions
> previously available with JPegLossLess still here, but without to use
> the plugin.
>
> Best
>
> Gilles Caulier
>
> 2014-04-13 17:45 GMT+02:00 Bast! <[hidden email]>:
>> Hi
>>
>> I cannot find the Kipi plugin JpegLossLess in Digikam and therefore have
>> only the lossy rotation of any kind. The documentation refers to this
>> plugin but I cannot find it.
>>
>> I am running kubuntu 12.04.04 LTS, Kubuntu 13.10 and Ubuntu 13.10 in a
>> VM, updated the kipi plugins and digikam to 3.5.0 on all three.
>> Setting up kipi-plugins-common (4:3.5.0-0ubuntu10) ...
>> Setting up kipi-plugins (4:3.5.0-0ubuntu10) ...
>>
>> Even the jpeglossless plugin was installed, I think:
>> /usr/lib/kde4/kipiplugin_jpeglossless.so
>> /usr/share/kde4/services/kipiplugin_jpeglossless.desktop
>> /usr/share/locale/es/LC_MESSAGES/kipiplugin_jpeglossless.mo
>> ...
>>
>> But it is not shown in the Configuration of Digikam under Kipi-Plugins.
>> How do I get the lossless JPEG rotation to work under digikam?
>>
>> Thanks in Advance
>> Bast!
>> _______________________________________________
>> Digikam-users mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Gilles Caulier-4
The JPEG transform operated from digiKam IconView is lossless. It use
standard LibJPEG lossless code, as you can see here :

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/show/libs/jpegutils/libjpeg-80

It's the same from digiKam Import Tool.

From BQM, it's not yet...

Best

Gilles Caulier

2014-04-13 23:56 GMT+02:00 Bast! <[hidden email]>:

> Hi Gilles
>
> The current functions are NOT lossless! They have small but measurable
> difference. In Gimp I put the original and the rotated version in two
> layers on top of each other, chose difference as layer option and
> adjusted the color values until i saw the difference.
>
> When compared to the really lossless rotation of irfanview I can say
> that both batch rotation and the rotating buttons of Digkam do in fact a
> _lossy_ rotation.
>
> What am I doing wrong?
>
> Bast!
>
> Am 13.04.2014 21:13, schrieb Gilles Caulier:
>> JpegLossLess plugin have been disabled in digiKam since a long time. A
>> core solution is used instead and is shared with BQM. All functions
>> previously available with JPegLossLess still here, but without to use
>> the plugin.
>>
>> Best
>>
>> Gilles Caulier
>>
>> 2014-04-13 17:45 GMT+02:00 Bast! <[hidden email]>:
>>> Hi
>>>
>>> I cannot find the Kipi plugin JpegLossLess in Digikam and therefore have
>>> only the lossy rotation of any kind. The documentation refers to this
>>> plugin but I cannot find it.
>>>
>>> I am running kubuntu 12.04.04 LTS, Kubuntu 13.10 and Ubuntu 13.10 in a
>>> VM, updated the kipi plugins and digikam to 3.5.0 on all three.
>>> Setting up kipi-plugins-common (4:3.5.0-0ubuntu10) ...
>>> Setting up kipi-plugins (4:3.5.0-0ubuntu10) ...
>>>
>>> Even the jpeglossless plugin was installed, I think:
>>> /usr/lib/kde4/kipiplugin_jpeglossless.so
>>> /usr/share/kde4/services/kipiplugin_jpeglossless.desktop
>>> /usr/share/locale/es/LC_MESSAGES/kipiplugin_jpeglossless.mo
>>> ...
>>>
>>> But it is not shown in the Configuration of Digikam under Kipi-Plugins.
>>> How do I get the lossless JPEG rotation to work under digikam?
>>>
>>> Thanks in Advance
>>> Bast!
>>> _______________________________________________
>>> Digikam-users mailing list
>>> [hidden email]
>>> https://mail.kde.org/mailman/listinfo/digikam-users
>> _______________________________________________
>> Digikam-users mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Bast!
Hmm, like I said, I checked the result of the rotation and it was indeed
lossy. Here is what I did in Gimp:

take an JPG file and duplicate it.
Open one of the images in Digikam and rotate it.
Open this image in Gimp.
drag and drop the other image into gimp, into the same project.
add it as a new layer.
rotate the layer so it fits onto the other image by
Layer/transform/Rotate 90 degrees
select the top layer and chose the mode "difference".
copy all visible (ctrl+shift+C)
paste as new layer (edit/paste as/layer)
select this layer and open the dialog Colors/levels
the value for the input levels on the right I set to 1 (from 255) and
hit ok.

If this image is totally black, and only then, the rotation was
lossless. If you see colored dots, it was lossy, since this is the
(probably not visible, but existing nonetheless) difference the rotation
introduced.

Or am I missing something?

Like I said, other means of lossless rotation tested do result in a
complete black (meaning zero difference) differencial map.

cheers
Bast!

Am 14.04.2014 16:55, schrieb Gilles Caulier:

> The JPEG transform operated from digiKam IconView is lossless. It
> use standard LibJPEG lossless code, as you can see here :
>
> https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/show/libs/jpegutils/libjpeg-80
>
>  It's the same from digiKam Import Tool.
>
> From BQM, it's not yet...
>
> Best
>
> Gilles Caulier
>
> 2014-04-13 23:56 GMT+02:00 Bast! <[hidden email]>:
>> Hi Gilles
>>
>> The current functions are NOT lossless! They have small but
>> measurable difference. In Gimp I put the original and the rotated
>> version in two layers on top of each other, chose difference as
>> layer option and adjusted the color values until i saw the
>> difference.
>>
>> When compared to the really lossless rotation of irfanview I can
>> say that both batch rotation and the rotating buttons of Digkam do
>> in fact a _lossy_ rotation.
>>
>> What am I doing wrong?
>>
>> Bast!
>>
>> Am 13.04.2014 21:13, schrieb Gilles Caulier:
>>> JpegLossLess plugin have been disabled in digiKam since a long
>>> time. A core solution is used instead and is shared with BQM. All
>>> functions previously available with JPegLossLess still here, but
>>> without to use the plugin.
>>>
>>> Best
>>>
>>> Gilles Caulier
>>>
>>> 2014-04-13 17:45 GMT+02:00 Bast! <[hidden email]>:
>>>> Hi
>>>>
>>>> I cannot find the Kipi plugin JpegLossLess in Digikam and
>>>> therefore have only the lossy rotation of any kind. The
>>>> documentation refers to this plugin but I cannot find it.
>>>>
>>>> I am running kubuntu 12.04.04 LTS, Kubuntu 13.10 and Ubuntu
>>>> 13.10 in a VM, updated the kipi plugins and digikam to 3.5.0 on
>>>> all three. Setting up kipi-plugins-common (4:3.5.0-0ubuntu10)
>>>> ... Setting up kipi-plugins (4:3.5.0-0ubuntu10) ...
>>>>
>>>> Even the jpeglossless plugin was installed, I think:
>>>> /usr/lib/kde4/kipiplugin_jpeglossless.so
>>>> /usr/share/kde4/services/kipiplugin_jpeglossless.desktop
>>>> /usr/share/locale/es/LC_MESSAGES/kipiplugin_jpeglossless.mo
>>>> ...
>>>>
>>>> But it is not shown in the Configuration of Digikam under
>>>> Kipi-Plugins. How do I get the lossless JPEG rotation to work
>>>> under digikam?
>>>>
>>>> Thanks in Advance Bast!
>>>> _______________________________________________ Digikam-users
>>>> mailing list [hidden email]
>>>> https://mail.kde.org/mailman/listinfo/digikam-users
>>> _______________________________________________ Digikam-users
>>> mailing list [hidden email]
>>> https://mail.kde.org/mailman/listinfo/digikam-users
>>>
>> _______________________________________________ Digikam-users
>> mailing list [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
> _______________________________________________ Digikam-users mailing
> list [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Marcel Wiesweg

For me lossless qualifies as lossless if you rotate forth and rotate back and
the resulting file, at least the pixel data, is identical to the original
unrotated form
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Bast!
Same for me. But that is the point, Digikam (at least my installation)
does change the pixel data.

Would you be so kind and try the test I proposed?

I did some more testing and the weird thing is:

When I rotate an image 90 or 270 degrees, I have a difference between
the original (O) and the rotated (R) image. The difference between the
original and the 90 degree rotation is equal to the difference of the
original and the 270 degrees rotation.

When digikam rotates 90 further, the difference is gone.

so:
    O = R180
O-R90 = O-R270

So changing the orientation from landscape to portrait or vice versa
introduces a pixel error that is removed on another orientation change.

I guess, I will have to live with that, because it seems to be either
unnoticed or tolerated for quite a while now.

Can anybody clarify this?

Thx in advance!
Bast!

Am 15.04.2014 22:24, schrieb Marcel Wiesweg:
>
> For me lossless qualifies as lossless if you rotate forth and rotate back and
> the resulting file, at least the pixel data, is identical to the original
> unrotated form
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

jdd@dodin.org
Le 15/04/2014 23:41, Bast! a écrit :

> Can anybody clarify this?

losless rotation is done rotating pixels squares of fixed size

but this can only be achieved on some correctly rounded images sizes (multiple
of square units (8x8 or 16x16). Don't know if you image have the right size

http://www.betterjpeg.com/lossless-rotation.htm

jdd


--
http://www.dodin.org
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Marcel Wiesweg
In reply to this post by Bast!

> > For me lossless qualifies as lossless if you rotate forth and rotate back
> > and
> > the resulting file, at least the pixel data, is identical to the original
> > unrotated form

> Same for me. But that is the point, Digikam (at least my installation)
> does change the pixel data.
>     O = R180
> O-R90 = O-R270

I cannot explain the behavior, I assume there is either a tiny logical detail
that we do not see or some fact deep in the JPEG compression technique.
It's at least symmetric.

If you read my definition closely you will see that is does not require
O = R90
It only requires any lossless operation R to have an operation R' so that
O = R'RO
;-)

Marcel
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Bast!
In reply to this post by jdd@dodin.org


Am 16.04.2014 08:06, schrieb jdd:
> but this can only be achieved on some correctly rounded images sizes
> (multiple of square units (8x8 or 16x16). Don't know if you image have
> the right size

Good point, but the error was throughout the picture on contrast edges.
So the dimensions were not the cause.

Thx for the idea and the explaination!

Bast!
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Lossless rotation is lossy!

Bast!
In reply to this post by Marcel Wiesweg
> I cannot explain the behavior, I assume there is either a tiny logical detail
> that we do not see or some fact deep in the JPEG compression technique.
> It's at least symmetric.
>
> If you read my definition closely you will see that is does not require
> O = R90
> It only requires any lossless operation R to have an operation R' so that
> O = R'RO

True, you wrote this before and your definition is correct. Furthermore:
let R''= (2a+1)R90 where a=-n..0..n
then 0=O-(ORR'')

:)

Since the error is reversible and very small, I will and can live with it.

Thank you all for your responses.

>> Thread solved and closed. <<

Bast!
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users