Previous Thread
Next Thread
Print Thread
Hop To
#265009 08/19/2021 1:26 PM
Joined: Mar 2007
Posts: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
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,900
Likes: 137
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,900
Likes: 137
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2007
Posts: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
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: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
Likes: 1
I submitted a ticket to Inmotion to confirm if latest version of ImageMagick is installed

Joined: Mar 2007
Posts: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
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,453
Likes: 68
Offline
Joined: Dec 2003
Posts: 6,453
Likes: 68
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: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
Likes: 1
Ruben,

I did run it from the UBB control Panel.

I got a response from my Inmotion ticket as follows:

Quote
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? confused

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,900
Likes: 137
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,900
Likes: 137
ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01

[Linked Image]

[Linked Image]


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,900
Likes: 137
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,900
Likes: 137
[Linked Image]

[Linked Image]


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2007
Posts: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
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,453
Likes: 68
Offline
Joined: Dec 2003
Posts: 6,453
Likes: 68
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: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
Likes: 1
Yes, GD2 works!! smile

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,171
Likes: 101
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,171
Likes: 101
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2007
Posts: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
Likes: 1
What version of PHP is running here at UBB?

Inmotion is telling me:

Quote
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,900
Likes: 137
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,900
Likes: 137
Originally Posted by ECNet
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

Originally Posted by ECNet
Inmotion is telling me:

Quote
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2007
Posts: 273
Likes: 1
E
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
E
Joined: Mar 2007
Posts: 273
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,900
Likes: 137
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,900
Likes: 137
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


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
RSS not working
by jsteinborn - 04/18/2022 2:46 PM
Largest UBB.threads forum
by Aaron101 - 04/06/2022 8:38 AM
News Block
by Aaron101 - 04/05/2022 6:48 PM
Who's Online Now
1 members (Morgan), 41 guests, and 63 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5