Opened 16 years ago

Last modified 10 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:
Platform: All


See mailing-list archive for the discussion on the subject:

Here's Michael Lotz suggestion on how to implement it:

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 by wkornewald, 16 years ago

Cc: axeld added

Axel, didn't you implement that recently?

comment:2 by ekdahl, 16 years ago

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 by axeld, 16 years ago

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 by leavengood, 13 years ago

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 by halilpk, 11 years ago

(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 by hometue, 10 years ago

(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.