Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-13655

Just first keyword of the IPTC keywords list is extracted as metadata and put into description field of an image


    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2.4, 5.0
    • Fix Version/s: 4.2.5
    • Labels:
    • Environment:
      Client: MacBook Pro with OS X 10.10.1 and Firefox 34
      Server: Ubuntu1204, 2x CPUs and 8 GB RAM; Alfresco v4.2.3.3


      If you upload a JPEG which contains IPTC metadata, then just the first keyword of the IPTC:keywords list is extracted
      to the description field of the image.

      [Steps to reproduce]:
      1.) Set up a vanilla 4.2.4 or 5.0 instance
      2.) Log in as admin and create a site
      3.) Upload sample image to DocLib of test site
      4.) Sample image has 3 keywords (see screenshots), just the first one is displayed in the description field.

      [Expected Behaviour]:
      All keywords should be extracted

      [Observed Behaviour]:
      Just the first one is extracted.

      [Analysis to date]:
      1.) We recognise all keywords, but extract just the first one

         Raw Properties:    {Software=paint.net 4.0.5, Metering Mode=Multi-segment, Model=Canon EOS 20D, meta:save-date=2005-08-15T17:51:19, Exposure Mode=Auto exposure, Exif Version=2.21, tiff:ImageLength=200, exif:Flash=false, Creation-Date=2005-06-23T10:53:30, ISO Speed Ratings=800, User Comment=null, X Resolution=72 dots per inch, created=2005-06-23T10:53:30, Shutter Speed Value=1/799 sec, description=keyword1, tiff:ImageWidth=300, tiff:XResolution=300.0, Image Width=300 pixels, Keywords=keyword1, Last-Save-Date=2005-08-15T17:51:19, exif:FNumber=5.0, F-Number=F5, meta:creation-date=2005-06-23T10:53:30, Color Space=sRGB, Resolution Units=inch, Data Precision=8 bits, tiff:BitsPerSample=8, tiff:YResolution=300.0, Last-Modified=2005-08-15T17:51:19, YCbCr Positioning=Center of pixel array, Components Configuration=YCbCr, Compression Type=Baseline, exif:IsoSpeedRatings=800, modified=2005-08-15T17:51:19, Exif Image Height=1867 pixels, Focal Length=125.0 mm, Content-Type=image/jpeg, Exposure Bias Value=0 EV, White Balance Mode=Auto white balance, Make=Canon, tiff:Make=Canon, Date/Time Original=2005:06:23 10:53:30, dc:subject=keyword1, subject=keyword1, Exif Image Width=2800 pixels, Scene Capture Type=Standard, dcterms:created=2005-06-23T10:53:30, exif:ExposureTime=0.00125, date=2005-08-15T17:51:19, Component 1=Y component: Quantization table 0, Sampling factors 2 horiz/2 vert, Component 2=Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert, author=null, Focal Plane X Resolution=59/233600 inches, Component 3=Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert, title=null, tiff:ResolutionUnit=Inch, Flash=Flash did not fire, auto, Focal Plane Y Resolution=59/233600 inches, Date/Time Digitized=2005:06:23 10:53:30, meta:keyword=keyword1, Resolution Unit=Inch, tiff:Software=paint.net 4.0.5, Focal Plane Resolution Unit=Inches, Aperture Value=F5, Number of Components=3, dcterms:modified=2005-08-15T17:51:19, tiff:Model=Canon EOS 20D, Image Height=200 pixels, Windows XP Keywords=keyword1;keyword2;keyword3, Exposure Time=1/800 sec, exif:DateTimeOriginal=2005-06-23T10:53:30, exif:FocalLength=125.0, FlashPix Version=1.00, Date/Time=2005:08:15 17:51:19, Custom Rendered=Normal process, Unknown tag (0xea1c)=[2006 bytes], Exposure Program=Aperture priority, comments=null, Y Resolution=72 dots per inch}

      2.) Given that the entire text of IPTC:Caption/description property is extracted and put into the description field if exist,
      unless just the first keyword is put in place instead, I assume that we use a delimiter in branch of the code something
      like "if(!IPTC:Caption_Description), then split list by delimiter and take first element."


          Issue Links




                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  nkisa Nebil Kisa
                • Votes:
                  0 Vote for this issue
                  5 Start watching this issue


                  • Created:

                    Time Tracking

                    Original Estimate - Not Specified
                    Not Specified
                    Remaining Estimate - 0 minutes
                    Time Spent - 6 hours

                      Structure Helper Panel