Skip to main content
Topic: Posting Images with limits (Read 3871 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Posting Images with limits

This "bug" exists probably since forever.
Set limits to image width or height, then try creating a post with this code:
Code: [Select]
[IMG]http://stream1.gifsoup.com/view/294143/scared-o.gif[/IMG]
Here on that server I get a 404 because probably the server times out (or something like that).

Obviously the problem is that Elk tries to determine the size of the image, but because it is rather big, it fails and php gives up.

Alternative solutions?
CSS looks the best: a max-width and a max-height set in html_headers should do the trick pretty well without forcing php to download tons of stuff. This would also eliminate the oddity to have different max-sizes depending on settings changed over the time.
Bugs creator.
Features destroyer.
Template killer.

Re: Posting Images with limits

Reply #1

Has this been attended to?

Re: Posting Images with limits

Reply #2

Easy peasy, let's try:

Bugs creator.
Features destroyer.
Template killer.

Re: Posting Images with limits

Reply #3

I think it has (somehow) been fixed (or at least made it not relevant).
But it may just be that the website of the gif above is down at the moment... dunno.

To rested when gifsoup.com comes back online.
Bugs creator.
Features destroyer.
Template killer.

 

Re: Posting Images with limits

Reply #4

I think its being masked in this example due to the image cache addon.

I'd suggest maybe logging this on github for 2.0.  I already changed a bunch of stuff in 2.0 for how image sizes are determined, so I may have be accidentally fixed in 2.0 but it should be checked.