Bitcoin Forum

Other => Meta => Topic started by: worhiper_-_ on December 30, 2015, 10:54:30 PM



Title: base64 images
Post by: worhiper_-_ on December 30, 2015, 10:54:30 PM
Several issues with how the forum handles images right now: Image hosts come and go, bitcointalk's image proxy isn't the very reliable, popular image hosts tend to delete controversial images.

I think that allowing base64 images to be posted could help solve those problems, at least for those willing to use the em.


Title: Re: base64 images
Post by: worhiper_-_ on January 12, 2016, 04:28:51 PM
bump, I guess.


Title: Re: base64 images
Post by: dogie on January 12, 2016, 05:28:01 PM
What specifically would base64 images help?


Title: Re: base64 images
Post by: minifrij on January 12, 2016, 06:08:11 PM
What specifically would base64 images help?
If the image is hosted onto a website and the website goes down, the image would likely be removed from the post. If base64 was used it wouldn't matter if any website went down due to the image being hosted on here.

I think the problem comes in that it would take more effort to implement than it would be worth; very few users would use the base64 system. Perhaps suggest it in the New Forum Software (https://bitcointalk.org/index.php?board=167.0) board, but don't get your hopes up.


Title: Re: base64 images
Post by: Lauda on January 12, 2016, 07:26:41 PM
If base64 was used it wouldn't matter if any website went down due to the image being hosted on here.
Wouldn't that take up more resources (i.e. storage) for the forum?


Title: Re: base64 images
Post by: minifrij on January 12, 2016, 07:51:30 PM
Wouldn't that take up more resources (i.e. storage) for the forum?
Yes; base64 images are just huge blocks of code.

For example, the base64 for ;D is:
Code:
data:image/gif;base64,R0lGODlhDwAPANUAAAAAAMyZAH9yAMzMzFFIAIaGhjEoAFxcXP/MAGZmZv///5mZmbiUAOLIABwaAEY9AK2KAP/wAGlUADs7Ow4LAODg4NywAL+/v+7hAP/cAL+mAIB4AGBOAMezAHNcACkiADozAOy9ALCrAPbFAJ1+AK6uru3t7b+6AGJaAP/mADMzAIqKimZmZnlhAOzRAP/4AH94AFlHAFJCABEQAMyjAKKiorydAOfn50U9AP/WACMcACsoAG1XAPDnANC0AJmZmSH5BAUUAD8ALAAAAAAPAA8AAAaowJ/wd5DNADPCYTgsGBwCn+vU+qgKzZkEkUulIhEMaob9GTzcjDfyahNUxM/IZgAIIgKA6tSbFVsIHAwZAikbPSIoESgEMzQIaWpgkx1HIQAUVg8gIDs7DjMNSDQUNyYAA6kAFQM4GjMyHhIrCgAKt7Y1HhwyBx8WIBe2uAMTNn5mEgy9CxclCQY2MQZCBbAjELIeJBZGZT9OWgEhATwOBt9DRUewS0NBADs=
As you can imagine, the bigger the image the more base64 needed and the more needed to store.


Title: Re: base64 images
Post by: worhiper_-_ on January 12, 2016, 08:04:54 PM
If base64 was used it wouldn't matter if any website went down due to the image being hosted on here.
Wouldn't that take up more resources (i.e. storage) for the forum?

That's true. Base64 increases the size of images nearly 30%, and if we wanted to cut off middlemen to take advantage of the pros I mention it should be hosted on the forum as text. Thing is, the forum is already storing quite a lot of text, base64 would likely end up being used by advanced users which imo wouldn't be a big percentage. The main advantage would be that images using base64 would stay up as long as the forum does, plus there's not going to be any need for proxying (which has proven to be unreliable).


Title: Re: base64 images
Post by: ABitNut on January 13, 2016, 12:38:52 AM
In the spirit of decentralization I have to suggest that you host your own images. That will bypass the "image host come and go" and "image hosts tend to delete controversial images". I am not familiar with details around the image proxy, so that may still be a problem :P


Title: Re: base64 images
Post by: samuel999 on January 13, 2016, 02:09:06 AM
If base64 was used it wouldn't matter if any website went down due to the image being hosted on here.
Wouldn't that take up more resources (i.e. storage) for the forum?

That's true. Base64 increases the size of images nearly 30%, and if we wanted to cut off middlemen to take advantage of the pros I mention it should be hosted on the forum as text. Thing is, the forum is already storing quite a lot of text, base64 would likely end up being used by advanced users which imo wouldn't be a big percentage. The main advantage would be that images using base64 would stay up as long as the forum does, plus there's not going to be any need for proxying (which has proven to be unreliable).
Would there be a way that we could encode those images as text but not have to take up so much space? Something that makes it at least the size of the image, if not smaller, but definitely not bigger.


Title: Re: base64 images
Post by: grue on January 13, 2016, 03:14:48 AM
There are better ways to solve the problem than getting the forum to host the image for you via a hack. How about tor hidden services? Magnet links?

Would there be a way that we could encode those images as text but not have to take up so much space? Something that makes it at least the size of the image, if not smaller, but definitely not bigger.
Images are big to begin with and jpg/png images are already compressed, so it's not like you can make it smaller. You can use more exotic encoding schemes to squeeze more bytes into a singe character, but that doesn't help much.


Title: Re: base64 images
Post by: worhiper_-_ on January 13, 2016, 02:42:52 PM
There are better ways to solve the problem than getting the forum to host the image for you via a hack. How about tor hidden services? Magnet links?

Tor hidden services aren't ideal for hosting and sharing content. I'm not sure about what you have in mind for image hosting, but from personal experience I'd say that .onion sites have a hard time competing with clearnet ones in terms of uptime and general reliability. Wouldn't it also require a "hack" to display images hosted using "hidden services" here?

As of magnet links, I could think of some issues but first of all, has a way to host and embed images using magnet links been developed yet?


Title: Re: base64 images
Post by: minifrij on January 13, 2016, 03:18:05 PM
There are better ways to solve the problem than getting the forum to host the image for you via a hack. How about tor hidden services? Magnet links?
I think the problem with both of those is that they would put more strain on the server than base64 would as they would require other software to work.
Using a tor hidden service would require some sort of mirror from darknet to clearnet (which is also unreliable; the majority of tor2web mirrors currently only work on certain browsers) and using a magnet link would require a torrent client to be not only getting the images available to view but seeding them to be sure that they do not die.


Title: Re: base64 images
Post by: Zeroxal on January 13, 2016, 08:49:15 PM
If we were allowed to host images directly on the forum there would already be a feature integrated within the forum. That's the exact same reason why the forum only accepts pictures from third party hosters. Mainly because of security reasons though...
"A picture says more than a thousand words" - that's true. Pictures can even take more space than millions of words to store on the server. And bitcointalk already needs to handle the "text" traffic and storage.
If we would start using base64 images all over the forum and let the forum store all the images, these images will get banned in no time.

And I really don't understand why people would want to let an image stay on a thread/post forever...

However, the forum could integrate an automatic system that uploads the image directly to imgur, etc and get the link instantly. (Like the browser extention I saw some time ago. I think it was Bitcointalk+ or something like that :/)


Title: Re: base64 images
Post by: HITTI2 on January 13, 2016, 10:53:39 PM
Might help with image hosting.

4TB. $8k$14k large.
http://www.intel.com/content/www/us/en/solid-state-drives/solid-state-drives-dc-p3608-series.html

http://www.intel.com/buy/us/en/product/components/intel-ssd-dc-p3608-series-40tb-12-height-pcie-30-x8-20nm-mlc-485298