Have testet, it's a problem of jpg-files
Have transformed a jpg to png (see my last post) and it worked
Have testet, it's a problem of jpg-files
Have transformed a jpg to png (see my last post) and it worked
Please follow the steps below:
1. Open the class.WMUHelper.php file in /wp-content/plugins/wpdiscuz-media-uploader/includes/ folder
2. go to line 460
3. Find the imageFixOrientation function and replace with the following one:
public function imageFixOrientation($filename) {
if (function_exists('exif_read_data')) {
$exif = exif_read_data($filename);
if (!empty($exif['Orientation'])) {
$image = imagecreatefromjpeg($filename);
switch ($exif['Orientation']) {
case 3:
$image = imagerotate($image, 180, 0);
break;
case 6:
$image = imagerotate($image, -90, 0);
break;
case 8:
$image = imagerotate($image, 90, 0);
break;
}
imagejpeg($image, $filename, 90);
}
}
}
I'd also recommend you install the exif library, as the wpDiscuz Media Uploader add-on uses exif library so as to allow images to be uploaded in the right way. For example, if you take a photo with IOS it rotates when you publish the comments.