Batch tools, unsharp

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

Batch tools, unsharp

Olivier Six
Hi everyone,

I already asked about this problem, but got no answer. I will try
again to explain what my problem is :

The "tools - batch process", if I go to the "filter", and "unsharp",
in the options, there are 4 settings that I can enter :

Radius, Deviation, Percent, Threshold

In the Imagemagick manuel, it says :
threshold: The threshold, as a fraction of QuantumRange, needed to
apply the difference amount (default 0.05).
(ref :
http://www.imagemagick.org/script/command-line-options.php?#unsharp)

The problem is that I can only use integers as setting.

It appears the same problem applies for the other parameters.

In the page http://redskiesatnight.com/Articles/IMsharpen/
I can read :

<quote>
A typical call to convert might look something like the following:
$ convert ... -unsharp 1.5x1.2+1.0+0.10 <input file> <output file>
</quote>

Obviously all parameters could be «NOT intergers», but in the
batch-process, I can enter ONLY integers.

Does anyone have an idea ? Is it a «bug» in Imagemagick, or in Digikam?

Well, even in case of no answer, I want to express my gratitude to the
team who gives us Digikam, which is a REAL tool. I use it day after
day, and I enjoy it.

> Hi, all.
>
> I am using Digikam (I've been using Digikam for about 6 months) on
> Ubuntu (Gutsy), version is 0.92, and imagemagick is version (I
> think) 6.2.4.5
>
> First, I am suprised that there are TWO versions for the «unsharp
> mask» function in Digikam.
>
> From the Image Editor -> Enhance -> sharpen -> Unsharp mask, where
> I find a «a la Gimp» interface (three settings, Radius, Amount,
> Threshold, and from Tools -> Batch process -> filter images
> ->unsharp I get the «Imagemagick Style» version, with different
> settings : Radius, Deviation, Percent, and Threshold.
>
> The Gimp version works OK. But as I would like to process my photos
> by large numbers, I want to use the Batch function. And there, I
> have 2 problems :
>
> - the settings don't answer as described in the different pages I
> have consulted. Where people talk from 0.05 in threshold, or 1.2 in
> radius, etc., here, from Digikam, I am unable to enter any
> parameter that is not an integer
>
> - whatever setting I use, I don't get any result : target image is
> the same as the original image.
>
>
> Is there anything that I should know, or anything I do wrong ?
>
> While I am here : thank you for this great software.
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Batch tools, unsharp

Bugzilla from mikmach@wp.pl
Dnia Tuesday 16 of October 2007, Olivier Six napisał:

> Hi everyone,
>
> I already asked about this problem, but got no answer. I will try
> again to explain what my problem is :
>
> The "tools - batch process", if I go to the "filter", and "unsharp",
> in the options, there are 4 settings that I can enter :
>
> Radius, Deviation, Percent, Threshold
>
> In the Imagemagick manuel, it says :
> threshold: The threshold, as a fraction of QuantumRange, needed to
> apply the difference amount (default 0.05).
> (ref :
> http://www.imagemagick.org/script/command-line-options.php?#unsharp)
>
> The problem is that I can only use integers as setting.
>
> It appears the same problem applies for the other parameters.
>
> In the page http://redskiesatnight.com/Articles/IMsharpen/
> I can read :
>
> <quote>
> A typical call to convert might look something like the following:
> $ convert ... -unsharp 1.5x1.2+1.0+0.10 <input file> <output file>
> </quote>
>
> Obviously all parameters could be ?NOT intergers?, but in the
> batch-process, I can enter ONLY integers.
>
> Does anyone have an idea ? Is it a ?bug? in Imagemagick, or in Digikam?

Well, ImageMagick has slightly different attitude toward values.
Almost everything there is in range 0-1 while in other programs it is
usually 1-100 or even 1-1000. IM probably has more scientific attitude
contrary to user friendliness everywhere else. It is not bug per se in
either program. What is a bug for me is inability of digiKam to use
non-integer values for radius. Other values are just different approach.

Threshold in batch tool has range 0-20. I suppose it is just 0-1 in 0.05
steps. Usability bug definitely. You should file it in bugs.kde.org
asking for uniformity between kipi and digiKam.

BTW - for unsharp mask 1.0 application is quite strong, try it with 0.8.

m.

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

Re: Batch tools, unsharp

Gilles Caulier-4
Yes, Mik,

To have coded originaly this plugins, the range is in interger and the parameters is passed to ImageMagick as a float after to have divided the value...

Gilles

2007/10/16, Mikolaj Machowski <[hidden email]>:
Dnia Tuesday 16 of October 2007, Olivier Six napisał:

> Hi everyone,
>
> I already asked about this problem, but got no answer. I will try
> again to explain what my problem is :
>
> The "tools - batch process", if I go to the "filter", and "unsharp",
> in the options, there are 4 settings that I can enter :
>
> Radius, Deviation, Percent, Threshold
>
> In the Imagemagick manuel, it says :
> threshold: The threshold, as a fraction of QuantumRange, needed to
> apply the difference amount (default 0.05).
> (ref :
> http://www.imagemagick.org/script/command-line-options.php?#unsharp )
>
> The problem is that I can only use integers as setting.
>
> It appears the same problem applies for the other parameters.
>
> In the page http://redskiesatnight.com/Articles/IMsharpen/
> I can read :
>
> <quote>
> A typical call to convert might look something like the following:
> $ convert ... -unsharp 1.5x1.2+1.0+0.10 <input file> <output file>
> </quote>
>
> Obviously all parameters could be ?NOT intergers?, but in the
> batch-process, I can enter ONLY integers.
>
> Does anyone have an idea ? Is it a ?bug? in Imagemagick, or in Digikam?

Well, ImageMagick has slightly different attitude toward values.
Almost everything there is in range 0-1 while in other programs it is
usually 1-100 or even 1-1000. IM probably has more scientific attitude
contrary to user friendliness everywhere else. It is not bug per se in
either program. What is a bug for me is inability of digiKam to use
non-integer values for radius. Other values are just different approach.

Threshold in batch tool has range 0-20. I suppose it is just 0-1 in 0.05
steps. Usability bug definitely. You should file it in bugs.kde.org
asking for uniformity between kipi and digiKam.

BTW - for unsharp mask 1.0 application is quite strong, try it with 0.8.

m.

_______________________________________________
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: Batch tools, unsharp

Bugzilla from mikmach@wp.pl
Dnia Tuesday 16 of October 2007, Gilles Caulier napisał:
> Yes, Mik,
>
> To have coded originaly this plugins, the range is in interger and the
> parameters is passed to ImageMagick as a float after to have divided the
> value...

What about radius?

m.

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

Re: Batch tools, unsharp

Olivier Six
Good question. How can enter a radius of 0.8 ?

Mikolaj Machowski wrote:

> Dnia Tuesday 16 of October 2007, Gilles Caulier napisał:
>> Yes, Mik,
>>
>> To have coded originaly this plugins, the range is in interger and the
>> parameters is passed to ImageMagick as a float after to have divided the
>> value...
>
> What about radius?
>
> m.
>
> _______________________________________________
> 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: Batch tools, unsharp

Gilles Caulier-4


2007/10/17, Olivier Six <[hidden email]>:
Good question. How can enter a radius of 0.8 ?

Mikolaj Machowski wrote:
> Dnia Tuesday 16 of October 2007, Gilles Caulier napisał:
>> Yes, Mik,
>>
>> To have coded originaly this plugins, the range is in interger and the
>> parameters is passed to ImageMagick as a float after to have divided the
>> value...
>
> What about radius?

You cannot do it. field is limited to integer values. Sorry.

Note : with KDE4 port of kipi-plugins, i'm shared to port this plugin as well or to make anew one in digiKam core using all digiKam image editor filter (there are a lots of report about in bugzilla, especially to have auto color correction tools). I would to have alsoa a way to apply more than one operation over the image at the same time...

Gilles

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

Re: Batch tools, unsharp

Gilles Caulier-4


2007/10/17, Gilles Caulier <[hidden email]>:


2007/10/17, Olivier Six <[hidden email]>:
Good question. How can enter a radius of 0.8 ?

Mikolaj Machowski wrote:
> Dnia Tuesday 16 of October 2007, Gilles Caulier napisał:
>> Yes, Mik,
>>
>> To have coded originaly this plugins, the range is in interger and the
>> parameters is passed to ImageMagick as a float after to have divided the
>> value...
>
> What about radius?

You cannot do it. field is limited to integer values. Sorry.

Just if somebody want to patch the tool in the right way, code is here :

http://websvn.kde.org/branches/extragear/kde3/libs/kipi-plugins/batchprocessimages/filterimagesdialog.cpp?revision=670712&view=markup

Look especially FilterImagesDialog::makeProcess() method, in Unsharp section...

Note : sorry, but i have no more time to patch it. KDE4 port take me a while for all the rest of digiKam & co.

Gilles

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

Re: Batch tools, unsharp

Bugzilla from mikmach@wp.pl
Dnia Wednesday 17 of October 2007, Gilles Caulier napisał:

> Just if somebody want to patch the tool in the right way, code is here :
>
> http://websvn.kde.org/branches/extragear/kde3/libs/kipi-plugins/batchpro
>cessimages/filterimagesdialog.cpp?revision=670712&view=markup
>
> Look especially FilterImagesDialog::makeProcess() method, in Unsharp
> section...
>
> Note : sorry, but i have no more time to patch it. KDE4 port take me a
> while for all the rest of digiKam & co.
>

OK. I will try to engage my minuscule C++ skills. First major obstacle:
I want to see string passed to convert added line

kDebug() << Temp2 << endl;

in proper place. Of course added #include <kdebug.h> in the beginning
but make complains:

filterimagesdialog.cpp:376: error: 'kDebug' was not declared in this scope
make[1]: *** [filterimagesdialog.lo] Error 1
make[1]: Leaving directory
`/home/mikolaj/kde/head/extragear/libs/kipi-plugins/batchprocessimages'
make: *** [all-recursive] Error 1

???

m.


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

Re: Batch tools, unsharp

Gilles Caulier-4
Mik,

with KDE3, use kdDebug()

Gilles

2007/10/17, Mikolaj Machowski <[hidden email]>:
Dnia Wednesday 17 of October 2007, Gilles Caulier napisał:

> Just if somebody want to patch the tool in the right way, code is here :
>
> http://websvn.kde.org/branches/extragear/kde3/libs/kipi-plugins/batchpro
>cessimages/filterimagesdialog.cpp?revision=670712&view=markup
>
> Look especially FilterImagesDialog::makeProcess() method, in Unsharp
> section...
>
> Note : sorry, but i have no more time to patch it. KDE4 port take me a
> while for all the rest of digiKam & co.
>

OK. I will try to engage my minuscule C++ skills. First major obstacle:
I want to see string passed to convert added line

kDebug() << Temp2 << endl;

in proper place. Of course added #include <kdebug.h> in the beginning
but make complains:

filterimagesdialog.cpp :376: error: 'kDebug' was not declared in this scope
make[1]: *** [filterimagesdialog.lo] Error 1
make[1]: Leaving directory
`/home/mikolaj/kde/head/extragear/libs/kipi-plugins/batchprocessimages'
make: *** [all-recursive] Error 1

???

m.


_______________________________________________
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