DWFII wrote: ↑
Sun Aug 13, 2017 11:32 pm
The images appear rotated both at as thumbnails and as full size photos
This issue can crop up for many different reasons, the reason for thumbnails and the ones in lightbox not being rotated correctly are two separate issues
Second, I understand that Lightbox controls the size of the thumbnails but I am not certain it controls the full size images.
Lightbox does not have anything to do with the thumbnails. The thumbnails are server side issue, when you upload the file to the server the image is resized by the server to produce the thumbnail. phpBB code does not take into account orientation, that information is stripped thus a sideways image.
The full size images...from IPhone...appear no larger (visually) than other images
The full size images in you example are like 4000 pixels wide, you would need a 4K monitor to see all that deatail. When the monitor is smaller the browser on your computer or phone resizes it on the fly and throws away a lot of that information. As I suggested if you go into the attachment settings and set both maximum dimensions to about 2000 you can cut down on the size of the image and the files.
When you set it to 2000 and the user uploads a file it's resized by their computer or phone. The file upload will go much faster, you'll use less disk space and when someone views the full size image it will download a lot faster.
And finally, I don't know what ImageMagick is (I searched for it in the extensions database but no joy.
Imagemagick is a program installed on many servers to manipulate images, it doesn't have anything to do with phpBB. If you go into your attachment settings there is a link you click that will search for it on the server, if it's present it will automatically fill in the correct path and click submit. This by itself will produce no changes.
If you have Imgemagick on your server you need to edit a phpBB file, if you are using Windows you can download Notepad++ here. This is specifically for editing code.
If you are using Mac soemoenbelse can suggest a good text editor.
On you computer you need open the file from the phpBB package includes/functions_posting and replace line 564 with this.
Code: Select all
@passthru(escapeshellcmd($config['img_imagick']) . 'convert' . ((defined('PHP_OS') && preg_match('#^win#i', PHP_OS)) ? '.exe' : '') . ' -auto-orient -quality 85 -geometry ' . $new_width . 'x' . $new_height . ' "' . str_replace('\\', '/', $source) . '" "' . str_replace('\\', '/', $destination) . '"');
Upload the file to your sever overwriting the original. Again this is band aid and I know it's working on my server. Keep in mind when you update phpBB if you overwrite this file with new ones it will revert to the same issue. This will only fix the issue with the thumbnails, it will not help with the lightbox issue.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
Attributed - Thomas Edison