You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2017/06/19 15:45:00 UTC

[jira] [Commented] (RAT-237) enable ability to read License/Copyright metadata from metadata-enabled Image

    [ https://issues.apache.org/jira/browse/RAT-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16054239#comment-16054239 ] 

Martin Gainty commented on RAT-237:
-----------------------------------

Nick..Thanks for the pngs for positive testcase

absent ReadImageValue testcase where NoCopyrightNoLicense.png (without License or Copyright headers) produces

RatCheckMojo::checkReadProperty LINE 231 after imageReader =  new BufferedImage(240, 240, BufferedImage.TYPE_INT_ARGB) where imageReader=BufferedImage@4e628b52: type = 2 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=ff000000 IntegerInterleavedRaster: width = 240 height = 240 #Bands = 4 xOff = 0 yOff = 0 dataOffset[0] 0
RatCheckMojo::checkReadProperty LINE 235 after imageReader = ImageIO.read(img) where imageReader=BufferedImage@588cd519: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@3f92c349 transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 320 height = 180 #numDataElements 3 dataOff[0] = 2
RatCheckMojo::checkReadProperty LINE 245 before imageReader=getProperty(readImageKey=readImagekey

causes this BuildException:
Caused by: LINE 259 Supplied Image value:java.lang.Object@769a58e5!=readImageValue

Thanks for supplying the Images I will attempt to do positive (can find License) testcase and negative (cannot find License)
with supplied PNGS
Martin-

> enable ability to read License/Copyright metadata from metadata-enabled Image
> -----------------------------------------------------------------------------
>
>                 Key: RAT-237
>                 URL: https://issues.apache.org/jira/browse/RAT-237
>             Project: Apache Rat
>          Issue Type: New Feature
>          Components: maven
>    Affects Versions: 0.12
>         Environment: any version maven
> any JDK
> <commercial/opensource> tool to create metadata-enabled Image is ?
>            Reporter: Martin Gainty
>            Priority: Minor
>             Fix For: 0.13
>
>         Attachments: asf_logo_longform.jpg, asf_logo_longform.png, asf_logo_shortform.jpg, asf_logo_shortform.png
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> An Incubator discussion has started to ensure organisations can authenticate proprietary image asset(s)..the first iteration will accomplish this objective by verifying the Copyright and or License metadata tag from a metadata enabled Image such as a XMP Image...a fork has been created from existing apache-rat-plugin codebase and a patch is is ready to verify copyright/license data in a metadata enabled Image. Currently seeking <commercial/opensource> tool which will insert Copyright/License information into Image metadata tag..Eval version photoshop File/FileInfo functionality is crippled and will not work. Currently evaluating exiftool...Suggestions are Welcome



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)