This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: 30-Dec-2012 18:46 Last Post By: CLOSED_USER Threads: [ Previous | Next ]
CLOSED_USER

Posts: 20
Registered: 15-Mar-2011
Problem rotating photo
Posted: 30-Dec-2012 17:51
 
  Click to reply to this thread Reply
I’m trying to rotate a picture in “Edit” mode and I get this message:

An unexpected error occurred. Please see detailed description below:

java.lang.Exception: Sorry, only digital camera JPEG images can be rotated
at se.datadosen.explorer.JAlbumExplorer.adjustOrientation(JAlbumExplorer.java:2198)
at se.datadosen.explorer.JAlbumExplorer.access$700(JAlbumExplorer.java:150)
at se.datadosen.explorer.JAlbumExplorer$37.actionPerformed(JAlbumExplorer.java:1112)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6382)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6147)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4744)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:677)
at java.awt.EventQueue$3.run(EventQueue.java:675)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:674)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.io.IOException: Couldn't find orientation tag in APP1 segment
at se.datadosen.util.RotationSupport.setOrientation(RotationSupport.java:287)
at se.datadosen.jalbum.AlbumObjectImpl.rotateLeft(AlbumObjectImpl.java:321)
at se.datadosen.explorer.JAlbumExplorer.adjustOrientation(JAlbumExplorer.java:2192)
... 39 more

I tried downsizing the pictures but that did not work. Any suggestions? Thanks!

jGromit

Posts: 33,207
Registered: 31-Jan-2006
Re: Problem rotating photo
Posted: 30-Dec-2012 18:14   in response to: CLOSED_USER in response to: CLOSED_USER
 
  Click to reply to this thread Reply
I'm surprised you got the full Java error. Normally if you try to rotate an image that doesn't have an orientation flag in it, you just get a dialog box that says, "Sorry, only digital camera JPEG images can be rotated."

In any event, the only way to rotate an image like that (typically, a scanned image) is to take care of it in some other image-processing software before using it in jAlbum. You can even do it in Windows Explorer - right-click, and choose one of the "rotate" options.
CLOSED_USER

Posts: 20
Registered: 15-Mar-2011
Re: Problem rotating photo
Posted: 30-Dec-2012 18:46   in response to: CLOSED_USER in response to: CLOSED_USER
 
  Click to reply to this thread Reply
When I built this album “Cambodia 2012” jAlbum built a “Cambodia 2012” folder inside my original “Cambodia 2012“ album with the copies of my pictures. Once I cleaned that up so I had only one folder I am able to see and edit without a problem.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums