Opened 12 years ago

Last modified 6 years ago

#1099 assigned enhancement

Lossless rotation of JPEG images in ShowImage

Reported by: ekdahl Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Applications/ShowImage Version: R1/alpha1
Keywords: Cc: axeld
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

See mailing-list archive for the discussion on the subject: http://www.freelists.org/archives/openbeos/04-2006/msg00091.html

Here's Michael Lotz suggestion on how to implement it: http://www.freelists.org/archives/openbeos/04-2006/msg00183.html

The external command line app he mentions could e.g. be jpegtran (which is capable of many sorts of lossless operations on jpeg data) included in libjpeg.

Change History (6)

comment:1 Changed 12 years ago by wkornewald

Cc: axeld added

Axel, didn't you implement that recently?

comment:2 Changed 12 years ago by ekdahl

I think he made the translator take the EXIF orientation tag into account when opening images and passing on the EXIF info. I don't think that it solves this, i.e. doing the rotation of the image data lossless.

comment:3 Changed 12 years ago by axeld

Exactly. I've written a small tool that allows writing back the ShowImage:orientation attribute as EXIF orientation for my own use (I might publish it on BeBits later). However, it doesn't know how to add EXIF data if there is none yet.

Since RAWTranslator and JPEGTranslator both export the EXIF data as part of the ioExtension message now, it would probably make sense to have an extra flag for Translate() (again, as part of the ioExtension) that would only update (or add) the EXIF data of/to a file.

comment:4 Changed 9 years ago by leavengood

Milestone: R1Unscheduled
Owner: changed from leavengood to nobody
Status: newassigned
Version: R1/pre-alpha1R1/alpha1

Moving this to Unscheduled since it is not high priority for R1. Also relinquishing ownership since I have no plans to work on it anytime soon.

comment:5 Changed 7 years ago by halilpk

(GCI-2011 Participant)

Haiku revision: hrev42211 still a bug. If you rotate jpeg files there is little change of quality.But it is hard to see the difference . System: Haiku hrev1-alpha3 on VMware workstation 8 on windows 7 32 bit

comment:6 Changed 6 years ago by hometue

(GCI-2012 Participant) Haiku revision: hrev44702. Still a bug. It is very hard to notice the loss of quality though. System: Haiku R1-alpha4 on Virtualbox 4.1.20 on windows 7 64 bit

Note: See TracTickets for help on using tickets.