Issue with some pictures, using latest build. Issue with some pictures, using latest build.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Issue with some pictures, using latest build.

Started by net, August 22, 2008, 01:40:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

net

Hello,

I have a issue with some pictures, im thinking its related to the meta data inside the picture. Is it possible to make jupload skip to rewrite this data before upload? Since it works perfectly to resize & upload these pictures with the normal GD2.

Heres a log of the event (trying to drag&drop picture into the applet on your page)

01:40:45.671 [INFO] Debug level set to 0
01:40:45.671 [INFO] Current debug output file: C:\DOCUME~1\JONNYE~1\LOCALS~1\Temp\jupload_52830_log.txt
01:40:45.671 [WARN] Invalid int value: true, using default value: 0
01:40:45.781 [INFO] JUpload applet, version 3.4.2rc4 [SVN-Rev: 491] (compiled: 07/25/2008 08:37 AM), available at http://jupload.sourceforge.net/
01:40:45.781 [INFO] maxFileSize: 2000000
01:40:46.046 [WARN] Invalid int value: , using default value: 0
01:40:46.046 [INFO] JUpload plugin for coppermine version 3.2.3
01:41:18.250 [WARN] Invalid int value: , using default value: 0
01:41:24.218 [INFO] Debug level set to 1
01:41:24.218 [INFO] Current debug output file: C:\DOCUME~1\JONNYE~1\LOCALS~1\Temp\jupload_52830_log.txt
01:41:24.218 [INFO] JUpload applet, version 3.4.2rc4 [SVN-Rev: 491] (compiled: 07/25/2008 08:37 AM), available at http://jupload.sourceforge.net/
01:41:24.218 [DEBUG] debugLevel: 1 (debugfile: C:\DOCUME~1\JONNYE~1\LOCALS~1\Temp\jupload_52830_log.txt)
01:41:24.218 [INFO] maxFileSize: 2000000
01:41:25.421 [ERROR] [wjhk.jupload2.exception.JUploadIOException:javax.imageio.IIOException] Invalid icc profile: bad sequence number (PictureFileData())
01:41:25.421 wjhk.jupload2.exception.JUploadIOException: PictureFileData()
01:41:25.421 at wjhk.jupload2.filedata.PictureFileData.<init>(PictureFileData.java:200)
01:41:25.421 at wjhk.jupload2.policies.CoppermineUploadPolicy.createFileData(CoppermineUploadPolicy.java:122)
01:41:25.421 at wjhk.jupload2.gui.FilePanelDataModel2.addFile(FilePanelDataModel2.java:198)
01:41:25.421 at wjhk.jupload2.gui.FilePanelTableImp.addFileOnly(FilePanelTableImp.java:113)
01:41:25.421 at wjhk.jupload2.gui.FilePanelTableImp.addDirectoryFiles(FilePanelTableImp.java:96)
01:41:25.421 at wjhk.jupload2.gui.FilePanelTableImp.addFiles(FilePanelTableImp.java:88)
01:41:25.421 at wjhk.jupload2.gui.JUploadPanel.addFiles(JUploadPanel.java:329)
01:41:25.421 at wjhk.jupload2.gui.DnDListener.drop(DnDListener.java:107)
01:41:25.421 at java.awt.dnd.DropTarget.drop(Unknown Source)
01:41:25.421 at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
01:41:25.421 at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
01:41:25.421 at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
01:41:25.421 at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
01:41:25.421 at java.awt.Component.dispatchEventImpl(Unknown Source)
01:41:25.421 at java.awt.Container.dispatchEventImpl(Unknown Source)
01:41:25.421 at java.awt.Component.dispatchEvent(Unknown Source)
01:41:25.421 at java.awt.EventQueue.dispatchEvent(Unknown Source)
01:41:25.421 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
01:41:25.421 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
01:41:25.421 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
01:41:25.421 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
01:41:25.421 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
01:41:25.421 at java.awt.EventDispatchThread.run(Unknown Source)
01:41:25.421 Caused by: javax.imageio.IIOException: Invalid icc profile: bad sequence number
01:41:25.421 at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader(Native Method)
01:41:25.421 at com.sun.imageio.plugins.jpeg.JPEGImageReader.readNativeHeader(Unknown Source)
01:41:25.421 at com.sun.imageio.plugins.jpeg.JPEGImageReader.checkTablesOnly(Unknown Source)
01:41:25.421 at com.sun.imageio.plugins.jpeg.JPEGImageReader.gotoImage(Unknown Source)
01:41:25.421 at com.sun.imageio.plugins.jpeg.JPEGImageReader.readHeader(Unknown Source)
01:41:25.421 at com.sun.imageio.plugins.jpeg.JPEGImageReader.getHeight(Unknown Source)
01:41:25.421 at wjhk.jupload2.filedata.PictureFileData.<init>(PictureFileData.java:195)
01:41:25.421 ... 22 more


Hope it helps!

etienne_sf

Can you give me the original picture, so that I run some tests on it ?

Etienne

net

Sorry i lost it :/ if i find more ill hook you up, it was a meta data issue.... I used jhead to clean the meta data and it works perfectly, maybe considering a upload function that does not touch the meta data? (if that's possible) that should resolve all meta data issues?