0.81 MacOS: Embedded aspect ratio issues

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

sd_snatcher
Posts: 39
Joined: Sat Sep 10, 2016 11:29 pm

Re: 0.81 MacOS: Embedded aspect ratio issues

Post by sd_snatcher »

Ok. I wasn't aware that I had to rebuild the thumbnails. That fixed them, thanks!

> for preview, 512x256 & 256x512 should be expanded as 512x512 or 256x256?

For Pixel Aspect Ratio correction, the image dimensions should always be expanded and not shrunk.

This means that a 512x256 image with 1:2 PAR must be rendered as 512x512, and a 256x512 image with a 2:1 PAR must also be rendered as 512x512.

In pseudocode, the final image dimensions will become like this:

Code: Select all

IF PAR<1 ;THEN
	final_widht = orig_width;
	final_height = orig_height * (1/PAR);
ELSE
	final_width = orig_width * PAR;
	final_height = orig_height;
ENDIF;
User avatar
xnview
Author of XnView
Posts: 45224
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.81 MacOS: Embedded aspect ratio issues

Post by xnview »

ok, will be fixed
Pierre.