Bug 442825

Summary: Add new tool to export xmp face-tags to html image-map.
Product: [Applications] digikam Reporter: Duns <web>
Component: Plugin-Generic-WishForNewToolsAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: caulier.gilles, frank.aust, metzpinguin, web
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Duns 2021-09-23 05:45:42 UTC
SUMMARY

I am searching for a easy way to convert xmp faces tags to html image-map (unless it would be possible to read in a webpage face tags: but this seems now impossible, is it?). 
There is a possibility?
Otherwise, it would be an interesting new feature. 

Thank you

SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-36-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics
Comment 1 Maik Qualmann 2021-09-23 06:05:18 UTC
I do not understand exactly what they want. Should only the face names or also the face thumbnails be exported? How should the HTML document look like? Maybe post a mockup or a sample website.

Maik
Comment 2 Duns 2021-09-23 14:29:04 UTC
only faces names, or rather the faces coords, so that would be possible convert them to html image-map.
Image-map is a standard to add info for specific region of image in a website page. The code is like the following:  

 <img src="workplace.jpg" alt="Workplace" usemap="#workmap">

<map name="workmap">
  <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
  <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
  <area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm">
</map> 

as you can see on many wewbsites about html code, such as https://www.w3schools.com/html/html_images_imagemap.asp.

Here you can find something that explain what I wish: 
https://mamclain.com/?page=Blog_Programing_Python_Picasa_XMP_Face_Extractor

But in my case I don't have Picasa but Digikam.

Let me know if it is clear, now.
Thjank you!
Comment 3 Duns 2021-09-23 18:21:31 UTC
to be more specific: 
xmp code is
   <rdf:li> <rdf:Description mwg-rs:Name="some name" mwg-rs:Type="Face"> <mwg-rs:Area stArea:x="0.692438" stArea:y="0.305485" stArea:w="0.111738" stArea:h="0.154337" stArea:unit="normalized"/> </rdf:Description> </rdf:li> 

this code should be converted in html map code, sucha as iun the comment 2
Comment 4 Duns 2021-11-15 17:02:44 UTC
I noticed today that GIMP can make and export an image-map (html compliant) in a .map file.  
Therefore another possibility for Digikam could be (a plugin to?) read that .map file as face tagging.
Comment 5 caulier.gilles 2021-11-15 17:12:31 UTC
yes sure this kind of job can be delegate to a plugin in digiKam. Internal API is ready to use for that.

Gilles Caulier
Comment 6 Duns 2021-11-15 17:16:11 UTC
Thank you. I am not a developer, therefore I can't do this job, but I hope that someone will do it.
Comment 7 caulier.gilles 2023-05-18 12:14:07 UTC
*** Bug 443567 has been marked as a duplicate of this bug. ***