|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
I just noticed an issue I have with uploading Attachment Images with larger dimensions.
Images with longest side of 2520 uploaded fine, but ones at 4032 would not until I reduced them.
I'm running 7.7.5 using ImageMagick
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
What type of image, JPG, GIF or PNG? Whats the file size of the image? What is your server's php.ini (Control Panel > PHP Info) setting for post_max_size and upload_max_filesize ? Does your file's size exceed that limit?
UBB.threads doesnt really care about the width/height of an image. The image is processed by your server's GD/ImageMagik before stored as a post attachment. But if the image file size is too large (php.ini settings), it wont even be accepted by your server for processing.
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
They were JPG files as follows:
#1 951 KB @ 2520 x 1890 uploaded fine #2 899 KB @ 3024 x 4032 would not upload (even by itself, as only Attachment) until I resized to 1890 x 2520 #3 2.08 MB @ 3024 x 4032 would not upload (even by itself, as only Attachment) until I resized to 1890 x 2520
Notice #2 smaller filer size than #1 but larger dimensions
php.ini:
post_max_size = 128M upload_max_filesize = 16M Forum permissions allow for 3 Attachments @ 16M each
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
I submitted a ticket to Inmotion to confirm if latest version of ImageMagick is installed
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
I should clarify something. It does appear that the larger dimension Files are uploading, but they will not display and are reported to be 0 Bytes.
It seems there may be an older version of ImageMagick on my server. I'm looking into that.
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Bill I am with inmotion and all I can say is do not trust the php.ini you can see. Go by running phpinfo.php from the UBB control panel. They have been making changes to htaccess without us knowing.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
1 member likes this:
isaac |
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
Ruben, I did run it from the UBB control Panel. I got a response from my Inmotion ticket as follows: Imagick was not installed on your server. We have installed it for ... php 7.3, which is your current php version. Huh?? How has it been working? Anyway, the version says it's over 4 years old. I'm trying to get them to upgrade it thinking there may have been a maximum pixel limit (??) What version is running here?
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
I did some tests, resizing the Image (4032 x 3024) down to 3951 x 2963 is the largest that will work. 3952 x 2964 will not
My server @ Inmotion is currently running ImageMagick 6.7.2-7 2017-03-22
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
If you were using phpinfo and IM is properly installed it should have appeared in the list as well as the version. I would switch to GD to see if you are having the same issue. It is just a mouse click in the UBB control panel.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
Yes, GD2 works!! I'd still like to see them update the ImageMagick software on the server as it was the UBB suggested choice. Anyone know what the difference is?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
ImageMagick and GD are both popular image optimization libraries for PHP applications across various platforms; they both perform most of the same functions but work differently. Generally it doesn't matter much which you use, both support common file types (due to standardization) and perform similar. - GD is generally processes larger images faster - GD comes bundled with PHP (ImageMagick binaries must be installed by your web host) - ImageMagick supports more image formats - ImageMagick generally produces higher quality images (which will generally result in a larger file size on the machine) The UBB.threads System Requirements Test will attempt to probe known paths in an attempt to identify if ImageMagick is installed on the target server; I'll have to check if there is a simple method to probe its version number for a future build.
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
What version of PHP is running here at UBB? Inmotion is telling me: The version of ImageMagick you are using is the latest version compatible with your version of PHP (That's ImageMagick 6.7.2-7 2017-03-22 on PHP 7.3)
Last edited by ECNet; 08/20/2021 8:47 PM.
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
What version of PHP is running here at UBB? I believe the UBBCentral server is running MultiPHP Manager and is currently set as PHP Version 7.1 Imagick 3.4.4 compiled with ImageMagick version 6.9.10-68 Q16 x86_64 On a test server completely unrelated to UBBCentral, I'm running PHP Version 8.0 Imagick 3.5.0 compiled with ImageMagick version 6.9.10-68 Q16 x86_64 Inmotion is telling me: The version of ImageMagick you are using is the latest version compatible with your version of PHP (That's ImageMagick 6.7.2-7 2017-03-22 on PHP 7.3) You will need to discuss the specifics with your host of why your server is not acting as expected. This is completely outside the realm of UBB.threads forum software and would take this conversation in to off-topic.
|
|
|
|
Joined: Mar 2007
Posts: 285 Likes: 1
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 285 Likes: 1 |
I wouldn't have brought it up if it wasn't affecting the way my UBB forum was operating.
Over and Out
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
I am unable to duplicate your issue on at least 3 different servers and hosts, and two different types of operating systems. You need to contact your host. We have no control over why your host has put in those limits to your account. There is nothing within UBB.threads that would limit your images in landscape but not in portrait for post attachments. Be aware that whatever image processing tool you used to rotate your images, they could be stored with new compression, at a smaller file size. Your original image could be too large for your current web hosting account's setting, and your manipulated image would be smaller. This all depends on how you are rotating -- via pixels or EXIF data. Also as stated above, attempt to use GD in place of ImageMagick. The toggle to do that can be found at: Control Panel > Attachments > Graphics Library To Use For Image Processing
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Geoff),
1,018
guests, and
215
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|