Hello,
I am trying to get metadata to display and have been able to get the field to show, but rather than displaying text it shows a group of question marks instead of the text
like this - ??????????
My config file contains this - $conf['show_exif'] = true;
$conf['show_exif_fields'] = array(
'Title',
'Make',
'Model',
'COMPUTED;ApertureFNumber'
);
$conf['use_exif'] = true;
$conf['use_iptc'] = true;
$conf['show_iptc'] = true;
Piwigo 11.4.0 Check for upgrade
Operating system: Linux
PHP: 7.4.16 (Show info) [2021-04-16 08:11:20]
MySQL: 5.5.5-10.3.25-MariaDB-0ubuntu0.20.04.1 [2021-04-16 08:11:20]
Graphics Library: ImageMagick 6.9.10-23
Offline
Hello
which one is problematic? Is it in both back and front end?
Offline
Your metadata may be in an odd text encoding or some other quirk. My crystal ball is broken. Have a link to an example image?
Offline
The information is entered using windows via file properties
Last edited by goldeneye243 (2021-04-17 10:03:30)
Offline
I meant a link to a real photo image, not some screenshot, so one can see what is actually contained in the metadata. You mentioning Windows leaves the suspicion that it could be UCS-2 or UTF-16 encoding. Anyway, nothing to tell here.
Offline
Hi :-)
activate [extension by ddtddt] Read Metadata for see php can read on your photo
Offline
ddtddt wrote:
activate [extension by ddtddt] Read Metadata for see php can read on your photo
+1
If that plugin can't read it that means your server can't and it's more likely due to the use of the generic windows explorer instead of a proper picture software
Offline
Interesting,
This is what I get with the plugin
no IPTC information img20210409_16474745A.jpg
EXIF Fields in img20210409_16474745A.jpg
FileName = img20210409_16474745A.jpg
FileDateTime = 1618511245
FileSize = 2389807
FileType = 2
MimeType = image/jpeg
SectionsFound = ANY_TAG, IFD0, THUMBNAIL, EXIF, WINXP
COMPUTED
html = width="3688" height="5296"
Height = 5296
Width = 3688
IsColor = 0
ByteOrderMotorola = 1
Thumbnail.FileType = 2
Thumbnail.MimeType = image/jpeg
Thumbnail.Height = 256
Thumbnail.Width = 178
ImageDescription = William and Alice Ellaway
Orientation = 1
XResolution = 1200/1
YResolution = 1200/1
ResolutionUnit = 2
Software = GIMP 2.10.24
DateTime = 2021:04:09 17:02:56
Exif_IFD_Pointer = 2294
Title = ?????????????????????????
Comments = ??????????????????????????????
Subject = ??????????????
UndefinedTag:0xEA1C = �
THUMBNAIL
ImageWidth = 178
ImageLength = 256
BitsPerSample = Array
Compression = 6
PhotometricInterpretation = 6
SamplesPerPixel = 3
XResolution = 1200/1
YResolution = 1200/1
ResolutionUnit = 2
JPEGInterchangeFormat = 4690
JPEGInterchangeFormatLength = 9761
ColorSpace = 1
XMP Properties:
This is what shows using irfanview on the original image
Looks like XPTitle is the name of the field, but I cannot get that to show...
Offline
XPTitle and others XPsomething fields are proprietary fields used by Windows since XP as stated in their name
Offline
Citing from this Exiftool thread post:
"The "XP" tags are written by Microsoft products. These products have no qualms about messing around with your precious images (and a long history of corrupting metadata), so I would avoid them like the plague."
Offline
I have spent a bit of time looking at this and started to use a tool called Metadata++ to export the metadata and use excel to copy it to another field that can display - Almost there, but a bit clunky to do...
My current issue is that it is displaying ASCII at the start of the comment - Any way to remove that?
Offline
I'd rather try Exiftool to read those data and write it to other fields instead of messing around with a piece of software that is absolutely not designed for the task.
Offline
Understood - Although the tool uses exiftool, but with a GUI.
Any thoughts on the ASCII displaying?
Offline
I was referring to "use excel to copy it to another field", Excel is a spreadsheet software.. I've no idea what you mean with "is displaying ASCII at the start of the comment".
Offline
OK - The use of excel is because I am familiar with it - It seemed to work quite well.
This is the ASCII error
Offline