[Bug 273751] New: Watermarks: Add support for svg and variable parts

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

[Bug 273751] New: Watermarks: Add support for svg and variable parts

Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

           Summary: Watermarks: Add support for svg and variable parts
           Product: digikam
           Version: unspecified
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: Batch Queue Manager
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           unspecified
OS:                Linux

I saw in DarkTable (http://darktable.sourceforge.net/ ) that they support svg
files as watermarks. They provide also some placeholders/variables--such as
$(EXIF.DATE), $(IMAGE.EXIF), $(EXIF.LENS) and so on--to place inside that svg.

I think that svg is a good format for a watermark as you can lossless change
its size (width × height). With the placeholders you can embed e. g. the
filename (say, you rename your images like yyyymmddxxxxxx, where ymd is
year/month/day and x some "serial number" or simply a counter). With that you
can embed something like "ID: $(FILENAME) \n © my name". Or to use the example
from darktable:
   $(IMAGE.EXIF)
      Camera: $(EXIF.Maker) - $(EXIF.MODEL) $(EXIF.LENS)
   Timestamp: $(EXIF.DATE)             $(DARKTABLE.NAME) v$(DARKTABLE.VERSION)

I'm sure, that there are much more ways to use this feature, so it would be
nice if you could implement it.

Reproducible: Always

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 273751] Watermarks: Add support for svg and variable parts

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=273751


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Version|unspecified                 |2.0.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 273751] BQM Watermark tool : Add support for svg and variable parts

Gilles Caulier-4
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Watermarks: Add support for |BQM Watermark tool : Add
                   |svg and variable parts      |support for svg and
                   |                            |variable parts

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 273751] BQM Watermark tool : Add support for svg and variable parts

bugzilla_noreply
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|BatchQueueManager           |BatchQueueManager-Tool-Inse
                   |                            |rtText

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 273751] BQM Watermark tool : Add support for svg and variable parts

bugzilla_noreply
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

Ahmed Fathi <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmed.fathi.abdelmageed@gma
                   |                            |il.com

--- Comment #1 from Ahmed Fathi <[hidden email]> ---
SVG watermarks can be read into digikam as QImage can deal with them by
default. I have made some modifications to the code to allow inserting text
into the svg images, by inserting actual XML strings into the original SVG xml
data just before applying it as a watermark.This structure is now ready. What
remains is to know what you prefer the feature to look like. I can supply a
text box where the user enters whatever text he wants, and provides the x,y
position into the svg image and the required font size , and his/her text gets
inserted in the svg. I can add  check boxes to automatically insert the image
filename and/or current date into the text of the watermark in the svg. Are
these good? Are they enough?
Thanks

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 273751] BQM Watermark tool : Add support for svg and variable parts

bugzilla_noreply
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

--- Comment #2 from [hidden email] ---
Ahmed,

I think the first step that you propose is enough for the moment.

Also, you can take a look to darktable to see how this feature work exactly.
This can be a good start :

https://www.darktable.org/usermanual/ch03s04s05.html.php

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 273751] BQM Watermark tool : Add support for svg and variable parts

bugzilla_noreply
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

--- Comment #3 from Ahmed Fathi <[hidden email]> ---
Ok thanks, I will implement that and take a look at darktable's work
Ahmed

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 273751] BQM Watermark tool : Add support for svg and variable parts

bugzilla_noreply
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

--- Comment #4 from Ahmed Fathi <[hidden email]> ---
Created attachment 104516
  --> https://bugs.kde.org/attachment.cgi?id=104516&action=edit
Patch to implement SVG watermark features

I made this simple patch for svg formated watermarks. The user is able to add a
specific one-line text to the svg xml, and has the choice to insert today's
date and/or the image name into the xml. He can choose the font size, text
positions , and color for all of these, with appropriate default values.

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 273751] BQM Watermark tool : Add support for svg and variable parts

bugzilla_noreply
In reply to this post by Bugzilla from bugs@rennings.net
https://bugs.kde.org/show_bug.cgi?id=273751

--- Comment #5 from [hidden email] ---
Ahmed,

I take a look into your patch, and i'm not agree with it.

1/ You patch DImg to handle SVG, but it's wrong. The type-mime enum from DIMg
is to list supported file format with native decoder in DK core. SVG is support
through QImage. That all.

2/ Your patch in watermark suppose that user know image as SVG. This will never
work to non SVG image. BQM is dedicated to be fully automatic, that all.

3/ Your patch suppose that SVG image will be loaded in BQM through DIMG and
patch XML as well. I think the basis of of this report is to apply a SVG over a
raster image as a raster image (as users generate logo in Inkscape and
watermark image with it). So loading SVG through QImage, render it as RGB and
apply it over image is enough. The only problem is to support 16 bits color
depth. So to solve it : load with DImg QImage loader, convert to 16 bits, apply
to image.

4/ In other words, we don't support vector graphics images as well. This is not
the goal of digiKam. We are raster graphic tools, that all. Patching XML
contents in BQM is a wrong idea, else we will need to support it in editor too,
and we don't want to make Inkscape here...

Please re-visit your patch. The solution here will be more simpler to achieve.

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.