Bitcoin Forum

Other => Meta => Topic started by: jekv2 on June 04, 2014, 09:37:57 PM



Title: Ironic if this image don't load to show image proxy sucks?
Post by: jekv2 on June 04, 2014, 09:37:57 PM
It's image host company's that are responsible for this kind of activity.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: dree12 on June 04, 2014, 09:40:18 PM
One problem I have with the image proxy is how it breaks images without an extension. If an image is served with the right MIME type, such as image/png, it should be proxied even if it has no extension or the wrong extension. Extensions are a very bad way to describe file types over the Internet. MIME types exist for a reason...

This bug breaks useful services such as Google Docs's chart API, which provides the easiest means to include LATEX in posts.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: theymos on June 05, 2014, 06:07:07 PM
That happens when the server hosting the image is too slow. Use something faster like imgur.

One problem I have with the image proxy is how it breaks images without an extension. If an image is served with the right MIME type, such as image/png, it should be proxied even if it has no extension or the wrong extension. Extensions are a very bad way to describe file types over the Internet. MIME types exist for a reason...

It doesn't rely on extensions. Example:

http://dummyimage.com/50x50/000/fff


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: Provably Fair Directory on June 05, 2014, 08:38:19 PM
Given the funds at disposal of the forum admins, they should be able to fund a perfectly fast image proxy. It could be a good thing, *if it worked properly*. I mean how hard can it be for a proxy to download and host an image? It should be working perfectly in a matter of seconds...


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: shorena on June 05, 2014, 08:39:58 PM
Given the funds at disposal of the forum admins, they should be able to fund a perfectly fast image proxy. It could be a good thing, *if it worked properly*. I mean how hard can it be for a proxy to download and host an image? It should be working perfectly in a matter of seconds...

Sometimes its better to just let the old stuff go and make something new...

https://bitcointalk.org/index.php?topic=523070.0


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: dree12 on June 05, 2014, 08:40:29 PM
http://chart.apis.google.com/chart?cht=tx&chf=bg,s,00000000&chl=1%2B1%3D2

Why does this fail?


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: theymos on June 05, 2014, 10:26:04 PM

That was due to an issue with the BBcode escaping of URLs. I fixed it.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: Mitchell on June 05, 2014, 11:20:11 PM
That happens when the server hosting the image is too slow. Use something faster like imgur.

One problem I have with the image proxy is how it breaks images without an extension. If an image is served with the right MIME type, such as image/png, it should be proxied even if it has no extension or the wrong extension. Extensions are a very bad way to describe file types over the Internet. MIME types exist for a reason...

It doesn't rely on extensions. Example:

http://dummyimage.com/50x50/000/fff
Why doesn't this image work then? It's a GIF hosted on Imgur.
https://i.imgur.com/zaOlnjh.gif


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: theymos on June 06, 2014, 12:45:47 AM
Why doesn't this image work then? It's a GIF hosted on Imgur.
https://i.imgur.com/zaOlnjh.gif

It's too big. The limit is 2.5 MB


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: sidehack on June 06, 2014, 04:35:39 AM
I don't know what's a forum-proxy issue and what's an initial-host issue, but those images are stored on our server which currently only has a 1Mb upload connection. We're looking to improve that in the near future.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: theymos on June 06, 2014, 05:14:56 AM
I don't know what's a forum-proxy issue and what's an initial-host issue, but those images are stored on our server which currently only has a 1Mb upload connection. We're looking to improve that in the near future.

Browsers nowadays like to make as many simultaneous requests for images as there are images on the page (this is stupid IMO). So all of your images are downloaded at once via the proxy, but your connection isn't fast enough to deliver everything before the proxy times out after a few seconds. Not being able to serve this much data quickly enough is understandable, but it still causes issues. The problem is that browsers can wait forever for servers to respond, so they're fine with issuing even hundreds of connections at a time, but the forum's server cannot wait. Each proxy connection takes up resources, so it must complete quickly. I'm not really sure how to fix this.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: bluefirecorp on June 06, 2014, 02:24:07 PM
I don't know what's a forum-proxy issue and what's an initial-host issue, but those images are stored on our server which currently only has a 1Mb upload connection. We're looking to improve that in the near future.

Browsers nowadays like to make as many simultaneous requests for images as there are images on the page (this is stupid IMO). So all of your images are downloaded at once via the proxy, but your connection isn't fast enough to deliver everything before the proxy times out after a few seconds. Not being able to serve this much data quickly enough is understandable, but it still causes issues. The problem is that browsers can wait forever for servers to respond, so they're fine with issuing even hundreds of connections at a time, but the forum's server cannot wait. Each proxy connection takes up resources, so it must complete quickly. I'm not really sure how to fix this.

Be forced to do what every other admin in the world has been forced to do;

Throw more hardware at it, even though there's a software solution.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: Mitchell on June 06, 2014, 02:26:46 PM
It's too big. The limit is 2.5 MB
That sucks... Well, not much to do about it I suppose. Why did you choose for 2.5MB by the way? Good quality pictures are almost bigger than that and are slowly get bigger all the time.


Title: Re: Ironic if this image don't load to show image proxy sucks?
Post by: theymos on June 06, 2014, 05:57:08 PM
There's no reason to force readers to download huge images when they load the page. If high resolution is really necessary, you can include a link to the image.