I'm having trouble understanding the Attachment settings for "Image Resizing" Do these settings only apply in Galleries? Not on attached images in forum posts?
User uploaded images into posts are coming through ImageMagick at the same pixel dimensions as they were submitted. Example: "4,000px × 3,000px (scaled to 1,202px × 902px)"
If I could reduce pixel dimensions, I could set a higher % in Image Quality and still have an efficient file memory size.
It would appear that there is a bug with ImageMagick, where it should resize before compression (like GD), but for whatever reason is not. Isaac mentioned that he'll have time this weekend to look further into the issue while I'm working on content rebuilder coding.
I switched to the GD2 option in "Attachments" and now the pixel size is being reduced to the chosen settings. I'm able to get 800 pixel images at 80% compression and still get nice optimized file sizes.
Always thought ImageMagick did a little nicer optimization, so I hope the bug can be resolved.
Images processed through ImageMagick are always more crisp, its why we generally recommend it over GD; hopefully we can make the string sane again after testing.
I found the issue and created a quick patch that you can update the file on your own server with right now. Though, It is best to just wait until the next version of UBB.threads is out, since it will have a more detailed code block inserted. This code is only needed if you are using ImageMagick. GD2 does not require this attribute at all.
I've tested this with and without GD2. GD2 presents no visual errors, and still processes the images as intended -- Though, with the attribute added, GD2 may create an warning entry in the error log such as, "unrecognized command "-resize" but image was processed anyways." But I havent checked this. And thats only an assumption.
in forums/libs/image.inc.php
EDIT 2018-02-21: IF YOU PREVIOUSLY MADE THE FOLLOWING CHANGE TO YOUR IMAGE.INC.PHP FILE, REVERT THE CHANGE OR GRAB A FRESH COPY OF THE FILE FROM THE ORIGINAL ZIP ARCHIVE. THEN SKIP THIS STRIKED-OUT SECTION, AND PROCEED TO THE "MAKE THIS CHANGE" SECTION
The ImageMagick resizing issue seems to have been missing from the code long before I came on board with UBBCentral. So I guess its now finally squashed. Digitalgas, thanks for posting about it, to finally give it some needed attention!
Last edited by isaac; 02/21/201811:48 PM. Reason: fixed my fix.
I'm using 7.6.1.1 and host say they installed ImageMagick 7.0.7-22 Q16 x86_64 2018-02-10
Isaac, I must say this is wonderful news HOWEVER I have one issue
after testing several times this is my feedback.
It resizes and compresses as it should BUT when using the Gallery with the new (Isaacs) codestring it does not upload thumbnails or medium size images anymore only the full size. see attachmens here
attachments below: Left thumbnail shows when using unedited code middle shows when edited code is used right image shows three images please read the header of each but the left broken as it shows no thumbnail
Thanks Morgan. I received your previous 4 posts relating to this issue. I don't plan on doing anything about it at 5:30am on Sunday morning. I'll look in to on Monday even, when I get home from work. Thank you for reporting this.
Isaac, I did the change and it works thank you very much.
I noticed one other thing now as I tried to drag the photos to my image manager and it did not work. Only when I select the normal way not drag. Tested to drag photos on UBBCentral it worked fine but not on my forum. see attached image what showed after I tried to drag the photo.
I wonder what could cause this? Have I missed a setting?
I noticed one other thing now as I tried to drag the photos to my image manager and it did not work. Only when I select the normal way not drag. Tested to drag photos on UBBCentral it worked fine but not on my forum. see attached image what showed after I tried to drag the photo.
I wonder what could cause this? Have I missed a setting?