Loosing EXIF when saving after rotate

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Guest

Loosing EXIF when saving after rotate

Post by Guest »

I hope I'm posting in the right forum, I'm trying to do some ASP VB-Script. I did not get any response from my previous post about EXIF retrieval. Anyhow, here is what I'm doing:

Code: Select all

const AX_JPEG = 3
Set oGflAx = server.createobject("GflAx.GflAx")
cFile = "image.jpg"
oGflAx.LoadBitmap cFile
oGflAx.SaveJPEGQuality = 100
oGflAx.Rotate 270
oGflAx.SaveFormat = AX_JPEG 'Save in JPEG format
oGflAx.SaveJPEGProgressive = True 'Progressive
oGflAx.SaveBitmap cFile
set oGlfAx = nothing
It rotates the picture fine and saves it but I loose the EXIF info. Is there a workaround or perhaps I'm doing something wrong? Thanks much.
User avatar
xnview
Author of XnView
Posts: 45867
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Loosing EXIF when saving after rotate

Post by xnview »

Anonymous wrote:I hope I'm posting in the right forum, I'm trying to do some ASP VB-Script. I did not get any response from my previous post about EXIF retrieval. Anyhow, here is what I'm doing:

Code: Select all

const AX_JPEG = 3
Set oGflAx = server.createobject("GflAx.GflAx")
cFile = "image.jpg"
oGflAx.LoadBitmap cFile
oGflAx.SaveJPEGQuality = 100
oGflAx.Rotate 270
oGflAx.SaveFormat = AX_JPEG 'Save in JPEG format
oGflAx.SaveJPEGProgressive = True 'Progressive
oGflAx.SaveBitmap cFile
set oGlfAx = nothing
It rotates the picture fine and saves it but I loose the EXIF info. Is there a workaround or perhaps I'm doing something wrong? Thanks much.
Right, a :bugconfirmed:
Pierre.