News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Image attachment dimension bug test for a possible formal bug report

Started by badon, July 21, 2016, 12:10:41 AM

Previous topic - Next topic

badon

Image attachment dimension bug test for a possible formal bug report. Attachments aren't allowed in the test forum, so I have to do it here. This is a screenshot image with a very large vertical dimension. On CCF, here:

https://forum.coincompendium.com/index.php

...posting there is a typical delay for the file upload, then the user is presented with a blank white screen, and no post is actually present on the forum. This bug is reproducible on our forum, so I'm checking if it is reproducible on this forum too. I suspect it might be a quirk of gd or imagemagick, or some other factor that isn't necessarily a problem within SMF itself.

badon

Oops, this post should have gone in the SMF 2.0.x forum, not 2.1.x. Can someone please move it for me? Thanks!

badon

OK, so apparently this works OK on simplemachines.org. Any ideas why it doesn't work at forum.coincompendium.com? Maybe there's something misconfigured?

oOo--STAR--oOo

Quote from: badon on July 21, 2016, 12:14:26 AM
OK, so apparently this works OK on simplemachines.org. Any ideas why it doesn't work at forum.coincompendium.com? Maybe there's something misconfigured?

Is this only a problem on attachments, or do you get this error when adding images to a post?

Can you set in the admin panel image height and width in posts and see if you can post that image then?
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Arantor

All that happens is that it's a sufficiently huge image, it consumes a lot of memory to process the resizing.

1043 by 9696 by 4 bytes per pixel ends up going beyond the usual memory limit allowed, and not all hosts allow changing it.

Not entirely a bug and not always something SMF can do anything about.

oOo--STAR--oOo

in admin - forum - attachment settings, try turning save as png off.

See if that works then for you? You can also remove the image dimensions..

I tried reproducing the error on my forums, I can't get it to trigger.. Maybe you wanna consider a better host ;)
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

badon

We have a heavy-duty dedicated server. Is this configurable in php.ini? Here is a screenshot of the current settings. I will try unchecking the option tto save thumbnails as PNG.

badon

Quote from: aljo1985 on July 21, 2016, 12:58:45 AM
in admin - forum - attachment settings, try turning save as png off.

See if that works then for you?

That worked. It now saves thumbnails as JPEG, which might be better anyway. Any guesses why PNG was failing? Is PNG the default, or did I configure it that way at some point?


oOo--STAR--oOo

I think it might have something to do with the fopen in php. But if it works without the png option, then you have nothing to worry about, just use it how it works :D
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.


nend


Advertisement: