HEIC/HEIF support

348 views
Skip to first unread message

giamma

unread,
Apr 10, 2023, 1:10:15 PM4/10/23
to PicApport
Hello,

as an iPhone user I would love Picapport to support pictures in HEIC/HEIF format.

I created a simple plug-in that relies on the imagemagick linux package and the im4j Java library to convert HEIC/HEIF files to JPEG. Here is the source code:


and here is a build


I tried installing the plug-in in PicApport and it gets picked up, I see the log repoted below. However this seems to have no effect: the plug-in is never invoked to perform a conversion, and the iPhone app is never uploading HEIC/HEIF images. Plus, if I am trying to upload a HEIC image from the Web Interface, Picapport says tha *.heic is not a picture and the upload is not performed. What am I doing wrong? Thank you.


INFO @ 16:32:56.236 PluginManager.extractFile: /opt/picapport/.picapport/plugins/HEICImagePlugin/picapport-heic-plugin-1.0.0-SNAPSHOT.jar
INFO @ 16:32:56.248 PluginManager.extractFile: /opt/picapport/.picapport/plugins/HEICImagePlugin/HEICImagePlugin.properties
INFO @ 16:32:56.252 Load plugin /opt/picapport/.picapport/plugins/HEICImagePlugin/picapport-heic-plugin-1.0.0-SNAPSHOT.jar
INFO @ 16:32:56.320 Load plugin class: com.github.giamma.picapport.HEICImagePlugin
INFO @ 16:32:56.336 Load plugin properties from /opt/picapport/.picapport/plugins/HEICImagePlugin/picapport-heic-plugin-1.0.0-SNAPSHOT.properties: File does not exist.
DEBUG@ 16:32:56.339 com.github.giamma.picapport.HEICImagePlugin: Version: 1.0.0
MSG @ 16:32:56.430 Plugin loaded: PicApport HEIC Plugin 1.0.0 (c) 2023 Gianmaria Romanato .heic image/heic (hideSubstitutes=true) implements IOtherFileFormat:com.github.giamma.picapport.HEICImagePlugin
MSG @ 16:32:56.497 Plugin loaded: PicApport HEIC Plugin 1.0.0 (c) 2023 Gianmaria Romanato .heif image/heif (hideSubstitutes=true) implements IOtherFileFormat:com.github.giamma.picapport.HEICImagePlugin
MSG @ 16:32:56.502 Plugin loaded: PicApport geojson plugin 1.0 (c) 2019 Contecon Software GmbH .geojson application/geo+json (hideSubstitutes=true) implements IOtherFileFormat:de.contecon.picapport.plugins.geojson.GeoJsonPlugin




E. Schreiner

unread,
Apr 11, 2023, 3:58:47 AM4/11/23
to PicApport
Hi,

your plugin seems to be loaded successfully. To invoke it you have to make sure that the crawler runs at least once. (e.g. type startcrawler on picapport server console)
Based on your configuration the crawler should invoke your Plugin for every new .heic or .heif file in your configured path. So for test purposed I recommend to start PicApport
with an empty database.

The PicApport Webgui currently supports only the upload of .jpg and Videofiles(supported by our Video Plugin)
The reason for this is that we support setting of some Metadata with the Webgui.

To Upload other formats, we recommend to use PicApports internal WebDAV Server. See: https://wiki.picapport.de/display/PICE/Configuration+and+use+of+the+WebDAV+server+integrated+in+PicApport
On my iPad I use the iOS App WebDAV Nav+.

regards
Eric

giamma

unread,
Apr 11, 2023, 5:31:26 AM4/11/23
to PicApport
Hi Eric,

Thank you for the advice, I will try your suggestions as soon as possible.

Giamma.

giamma

unread,
Apr 12, 2023, 12:41:53 PM4/12/23
to PicApport
Hello Eric,

I confirm the plug-in indeed works!

It was a wrong expectation on my side that the Picapport App would start pushing HEIC images to the Picapport server after installing the plug-in. This is not happening, but when I use WebDAV and the WebDAV Nav+ app as you recommended to push and sync photos, my custom plug-in is correctly invoked to transform pictures into JPEGs. The menu item to download the original picture also works, so everything is OK :-)

Thanks alot.
Giamma.

E. Schreiner

unread,
Apr 13, 2023, 6:39:55 AM4/13/23
to PicApport
Hi Giamma,
that sounds good. If you think your plugin is stable we can put a link to a download page if you like.
In this case just send me the URL.
best regards
Eric

giamma

unread,
Apr 15, 2023, 7:13:54 AM4/15/23
to PicApport
Hi Eric,

The plug-in has been working flawlessly for me for several days, converting 1000+ images.
The home page is here https://github.com/giamma/picapport-heic-plugin, you can have a look at the sources if you wish.
In case of bugs people can contact me via github and I'll do my best to fix them.

Giamma.
Reply all
Reply to author
Forward
0 new messages