New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Charset in Caption-Abstract #3249
Comments
The metadata fields available in the image metadata editor are defined in this file: https://xref.dokuwiki.org/reference/dokuwiki/nav.html?conf/mediameta.php.html I guess that these lines provide the caption. By using About the encoding, the steps were the data is retrieved or stored are listed below. I have no suggestions, maybe others can give better suggestions. The input of the form is saved by |
I looked at the Caption-Abstract field more carefully... Dokuwiki stores the field in Windows Latin1 encoding. exiftool -L -Caption-Abstract image-orginal.jpg gives Caption-Abstract : Swedish åäö and ÅÄÖ OK, thats a bit disappointing but it's not bug. It is not possible to copy commented photos to DW media folder and use the metadata without first converting both filename and metadata textfields. Nowadays, of course, most software use utf-8 so there are no interoperability problems. The problem seems to have popped up before: https://forum.dokuwiki.org/d/10957-exif-ipct-and-utf8-problem I'll close this since it's not a bug. The charset used could be configurable, though or at least follow $conf['fnencode'] = 'utf-8'; |
This sounds like a feature request to JpegMeta, but that library is hardly maintained... |
Yes, I suppose it's a feature request.... There are many feature requests... JpegMeta is old and contains to much low level code. It's hard to maintain and should be replaced by a PHP EXIF library. Thats a lot of work. |
Similar library is suggested at this thread: #1970 (comment) and some further development is found in https://github.com/LycheeOrg/php-exif |
Why isn't the Caption-Abstract field used in images uploaded to DW? DW seem to clear the content on upload.
Using Mediamanager to enter text in the Caption field works and the text is visible in DW pages, BUT the text is stored in a strange coding not readable in other applications.
Before upload to DW
$ exiftool -Caption-Abstract image-orginal.jpg
gives
Caption-Abstract : Swedish åäö and ÅÄÖ
The same image uploaded to DW and edited in Media Manager taken from /data/media...
$ exiftool -Caption-Abstract image-orginal-dw.jpg
gives
Caption-Abstract : Swedish åäö and ÅÄÖ
Looks like mojibaki to me.
I'm on MacOS and Hogfather.
The text was updated successfully, but these errors were encountered: