[
https://issues.apache.org/jira/browse/IMAGING-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14701464#comment-14701464
]
Sebb commented on IMAGING-112:
------------------------------
This commit is needed to fix the test failure on Continuum:
{quote}
javax.imageio.IIOException: Invalid argument to native writeImage
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native
Method)
at
com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1058)
at
com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:360)
at javax.imageio.ImageWriter.write(ImageWriter.java:615)
at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
at javax.imageio.ImageIO.write(ImageIO.java:1578)
at
org.apache.commons.imaging.formats.jpeg.iptc.IptcFullDiscardTest.generateImage(IptcFullDiscardTest.java:45)
{quote}
URL: http://svn.apache.org/r1696448
Log:
See if this fixes the Continuum test failure
Modified:
commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcFullDiscardTest.java
private byte[] generateImage() throws Exception {
- BufferedImage image = new BufferedImage(100, 50,
BufferedImage.TYPE_INT_ARGB);
+ BufferedImage image = new BufferedImage(100, 50,
BufferedImage.TYPE_3BYTE_BGR); // was TYPE_INT_ARGB but that fails on Continuum
> JpegIptcRewriter.removeIPTC() does not remove all metadata
> ----------------------------------------------------------
>
> Key: IMAGING-112
> URL: https://issues.apache.org/jira/browse/IMAGING-112
> Project: Commons Imaging
> Issue Type: Improvement
> Affects Versions: 1.0
> Reporter: Xavier Dury
> Assignee: Benedikt Ritter
> Fix For: 1.0
>
> Attachments: ImageTest.java, imaging-112.patch, patch.txt
>
>
> I'm trying to compute hashes from my images to detect duplicates.
> To do so, I strip every metadata (like keywords I may have added) then
> compute a CRC32.
> My problem is that JpegIptcRewriter.removeIPTC() does not remove all metadata
> as there is always a difference of 18 bytes (containing "Photoshop 3.0").
> So could it be possible to remove those 18 bytes as well in removeIPTC() so
> that I can compute hashes?
> Thanks,
> Xavier
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)