Sorry, but I can't give you access to my coppermine because it is on my own computer at home, and should not be exposed on internet.
I think it is because my original pics are not modified and so they keep there bad orientation.
So heigth and width are confused.
I have try some hack in php code : picmgmt.inc.php without success
$CURRENT_PIC_DATA['pwidth'] = $imagesize[0];
$CURRENT_PIC_DATA['pheight'] = $imagesize[1];
Wich are from
$imagesize = cpg_getimagesize($image);
$image is the orginal photo, but thumbnail and intermediate picture may have different geometrie proportion when I use -auto-orient
I have try to call again cpg_getimagesize() with $work_image after the resize but it don't work. (I am not very good in php so I don't know if modification in function affect parent object)
Maybe I should try to use the $normal and $thumb variable to get the good width and heigth but I am not sure of how(and where) to set this information in database using $CURRENT_PIC_DATA array
I haved another issue with the -auto-orient option in the same php file.
The vertical photo was resized using the $ratio from original pics, which have inverse geometrie, so they were more small as my config is set
So I haved to calculed a percent to pass it to image magic :
[...]
} elseif ($thumb_use == 'wd') {
// resize method width
$ratio = $srcWidth / $new_size;
$percent = round(100 * $new_size/$srcWidth);
} elseif ($thumb_use == 'ht') {
// resize method height
$ratio = $srcHeight / $new_size;
$percent = round(100 * $new_size/$srcHeight);
} else { // resize method any
$ratio = max($srcWidth, $srcHeight) / $new_size;
$percent = round(100 * $new_size/max($srcWidth, $srcHeight));
}
[...]
$destWidth = (int)($srcWidth / $ratio);
$destHeight = (int)($srcHeight / $ratio);
// $resize_commands = "-geometry ".$destWidth."x".$destHeight;
$resize_commands = "-resize ".$percent."%";
So to finish, I think it is not an issue with coppermine.
I may have to rotate photo before upload them and every think should work well.
Idea or comment are welcomme