tracker issue : CF-3669406

select a category, or use search below
(searches all categories and all time range)
Title:

ImageGetIPTCMetadata and ImageGetIPTCTag strips commas in fields with more than one value

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Ernesto Rodriguez Ageitos / Ernesto Rodriguez Ageitos (Ernesto Rodriguez Ageitos)

Created: 11/15/2013

Components: CFIMAGE

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on July 29, 2017 using build 2016.0.01.298513
Problem Description:

When reading IPTC information from a jpg, if a IPTC field has more than one value, the information provided by ImageGetIPTCMetadata and ImageGetIPTCTag has a whitespace as separator instead of a comma, making different values indistinguible from values that contains whitespaces.

Steps to Reproduce:

Assuming that myImageFile is a jpg file with IPTC metada, one of which fields is "Keywords", with the values "landscape,blue,sky,new england".

<cfset myImage=imageRead(myImageFile)> 
<cfset IPTC=ImageGetIPTCMetadata(myImage)>
<cfdump var="#IPTC#">

Actual Result:

landscape blue sky new england

Expected Result:

landscape,blue,sky,new england

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3669406

External Customer Info:
External Company:  
External Customer Name: Ernesto RA
External Customer Email:  
External Test Config: My Hardware and Environment details:



* Windows 7 64-bit, Apache 2, ColdFusion 10

* CentOS 64-bit, Apache 2, ColdFusion 10

Attachments:

  1. March 17, 2014 00:00:00: 1_FO004040504.jpg

Comments:

Tried by downloading couple images from web, which has multiple keywords. Could not reproduce the issue. Can you please share the image. (Comment added from ex-user id:nawani)
Comment by Adobe D.
13959 | December 18, 2013 06:58:30 AM GMT
Thanks for your reply. I've attached a sample image. The following code on ColdFusion 10: <cfset myImage=imageRead("FO004040504.jpg")> <cfset IPTC=ImageGetIPTCMetadata(myImage)> <cfdump var="#IPTC.Keywords#"> Returns "barrio fernando ojeda foto horizontal gran canaria las palmas de gran canaria schamann vista a?rea vivienda" Same image, with software like exifTool (http://www.sno.phy.queensu.ca/~phil/exiftool/), also using ColdFusion: <cfset variables.exifTool = "C:\windows\exiftool.exe"> <cfexecute name="#variables.exifTool#" arguments="-KEYWORDS c:\test\FO004040504.jpg" timeout="30" variable="local.exifToolResult" /> <cfdump var="#local.exifToolResult#"> Returns "barrio, fernando ojeda, foto horizontal, gran canaria, las palmas de gran canaria, schamann, vista aƩrea, vivienda"
Comment by External U.
13960 | March 17, 2014 10:36:51 AM GMT
Upgrading the metadata library to 2.8.1. The new library is using ; as seperator when multiple values are present in the metadata tag.
Comment by S V.
13961 | September 25, 2015 03:23:53 AM GMT
Fix will be available in the next release of ColdFusion. Thanks!
Comment by S P.
13962 | September 25, 2015 05:40:52 AM GMT
Hi Preethi, Another issue.. Looks like ImageGetIPTCMetadata() is broken in CF11 Update 5, as the following returns an empty struct (using image attached to this ticket): writeDump(imageGetIPTCMetadata(imageRead("FO004040504.jpg"))) Thanks!, -Aaron
Comment by External U.
13963 | September 28, 2015 03:31:46 AM GMT
Cool, thanks!
Comment by External U.
13964 | October 26, 2015 03:38:20 PM GMT
Filed CF-4096238 for imageGetIPTCMetadata() not returning metadata (my comment on 2:01:46 AM GMT+00:00 Sep 28, 2015 went unanswered). Thanks!, -Aaron
Comment by External U.
13965 | December 05, 2015 02:14:35 AM GMT
Hi Aaron, The fix was taken up for next ColdFusion version and was verified on that. The fix will be made on ColdFusion 11 as part of the next update as per the new ticket logged Thanks, Preethi
Comment by S P.
13966 | December 07, 2015 03:29:05 AM GMT
Hi Preethi, Thank you very much for the follow-up and explanation. Will await next CF11 update. Thanks!, -Aaron
Comment by External U.
13967 | December 07, 2015 10:18:15 AM GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Multiple values are delimited by semicolon (;). Thanks!, -Aaron
Comment by Aaron N.
13968 | July 29, 2017 07:00:57 PM GMT