[WD20] Is dRotation fundamentally flawed? [SOLVED]

Startbeitrag von Curtis am 02.11.2015 15:46

If I scan in a driver's license and the scan comes in portrait(red box), how can I rotate the image to landscape and fill the entire black box without losing too much image quality? I am using TwainToJPG().

Also when I use dRotation on an image, that image fails to save to the Db when I use HLinkMemo().
[attachment 1756 Untitled.png]

Antworten:

Re: [WD20] Is dRotation fundamentally flawed?

Hi Curtis,

in my experience, drotation works fine. But you need to take care of a few things:

1. forget about image VARIABLE, and use an image field (variables are newer and do not support everything)

2. make sure that your image is inside a SQUARE image field before you rotate, so that rotation can happen correctly

3. make sure that the image field is at the correct size (if your original image is 1024*768, then your image field should be set as 100% centered, 1024*1024).

4. once the rotation is done, do a dsaveimagepng of the result, THEN link that file to your memo.

With that system, there is no quality loss to speak of

Best regards

von Fabrice Harari - am 02.11.2015 17:58

Re: [WD20] Is dRotation fundamentally flawed?

Thank you! I should have thought about the square issue.

von Curtis - am 02.11.2015 20:12
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.