Loading...

massive quality changing by GdPicture rotate

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

massive quality changing by GdPicture rotate

Postby ClipFix1 » Thu Sep 09, 2010 1:20 pm

GdPicture.RotateXXX or GdPicture.FlipXXX returns quality-changing. By using 4 x Rotate90 you have massiv deterioration, please have a look at attachment
Attachments
Bild2.jpg
Bild2.jpg (103.45 KiB) Viewed 198 times
Bild3.jpg
Bild3.jpg (107.58 KiB) Viewed 198 times
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm

Re: massive quality changing by GdPicture rotate

Postby Loïc » Thu Sep 09, 2010 1:30 pm

Hi,

Do you have a code snippet which reproduces the problem ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: massive quality changing by GdPicture rotate

Postby ClipFix1 » Thu Sep 09, 2010 1:43 pm

Code: Select all
Imaging.CreateImageFromFile(MyFile)
Dim nClonedImage As Long = Imaging.CreateClonedImageI(Imaging.GetNativeImage)
ImagingCloseNativeImage()
Imaging.SetNativeImage(nClonedImage)
GdPicture.SetNativeImage(nClonedImage)
GdPicture.Rotate90()
Imaging.SaveAsJPEG(MyFile, 100)
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm

Re: massive quality changing by GdPicture rotate

Postby Loïc » Thu Sep 09, 2010 1:46 pm

OK I see,

You make successive OPEN/SAVE action using JPEG format. Keep in mind that JPEG is a lossy compression scheme. Therefore you will lost image information each time you will save.

A workaround consists to use a lossless compression scheme such as PNG.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: massive quality changing by GdPicture rotate

Postby ClipFix1 » Thu Sep 09, 2010 2:09 pm

Thx.

OK, I understand. But not realy workaround, because save from PNG as JPG, you even lost informationen.
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm

Re: massive quality changing by GdPicture rotate

Postby ClipFix1 » Thu Sep 09, 2010 2:47 pm

I try with Image.RotateFlip by vb.net-roots. The lost of informationen is minimal even after 10 turns with vb.net-save-methode. May be the dgpictiure-save-method optimize in next times.
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest