Pages:
Author

Topic: What image type forum supports? (Read 299 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
March 04, 2023, 05:04:29 AM
#21
By the way, you can do this with almost any image. Except for more complex extensions - for image programs. Even on your PC changing the extension, it recognizes the image as another type of file. If you test change to .bmp, a very little used format, it opens the file the same on your PC. It's pretty curious how the imaging system works. Smiley
I often use file (standard program) or identify (part of ImageMagick) to see file details. The latter can also be used from PHP, so that's where I would start as a backend for an image host.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
March 04, 2023, 04:06:35 AM
#20
How's this for a workaround? Cheesy I think theymos' image proxy is dumb enough to only check the extension (and file size), while the browser is smart enough to figure out the actual file format and display the image correctly Cheesy

By the way, you can do this with almost any image. Except for more complex extensions - for image programs. Even on your PC changing the extension, it recognizes the image as another type of file. If you test change to .bmp, a very little used format, it opens the file the same on your PC. It's pretty curious how the imaging system works. Smiley
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
March 04, 2023, 03:51:15 AM
#19
That's true, but when you set up a site that accepts images, you have to indicate the accepted extensions.
A proper image converter doesn't care about the extension, but checks the actual file format.
If you create a site for hosting images, you can automatically convert the images to the desired extension.

This got me thinking: what if I just change the extension to jpg without changing the file itself?
Test:


How's this for a workaround? Cheesy I think theymos' image proxy is dumb enough to only check the extension (and file size), while the browser is smart enough to figure out the actual file format and display the image correctly Cheesy
hero member
Activity: 2128
Merit: 532
FREE passive income eBook @ tinyurl.com/PIA10
March 04, 2023, 03:14:54 AM
#18

That's true, but when you set up a site that accepts images, you have to indicate the accepted extensions.

If the .jpeg version is not included, the system will not accept it, despite being the same type of file as the .jpg. Usually who does this kind of configuration, he knows this and tries to cover these details in the image extensions.

Gotcha, so it boils down on whether to include the lesser-used jpeg or just go mainstream (i.e. ignore it). Interestingly some hosting sites would auto-convert it to WEBP such as Imgbb.

Seems that this forum does support it with the sample below.

legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
March 04, 2023, 02:59:17 AM
#17
Actually JPEG is JPG. JPG because Windows back then only supported the three-letter file extension instead of four, then it stuck. Smiley

That's true, but when you set up a site that accepts images, you have to indicate the accepted extensions.

If the .jpeg version is not included, the system will not accept it, despite being the same type of file as the .jpg. Usually who does this kind of configuration, he knows this and tries to cover these details in the image extensions.
hero member
Activity: 2128
Merit: 532
FREE passive income eBook @ tinyurl.com/PIA10
March 04, 2023, 01:19:08 AM
#16
As far as I know, the forum's image proxy is limited to GIF, PNG and JPG (probably also JPEG).

Someone should setup an image host dedicated only to Bitcointalk, that converts all images to a working format.

Actually JPEG is JPG. JPG because Windows back then only supported the three-letter file extension instead of four, then it stuck. Smiley

Quote
JPGs and JPEGs are the same file format. JPG and JPEG both stand for Joint Photographic Experts Group and are both raster image file types. The only reason JPG is three characters long as opposed to four is that early versions of Windows required a three-letter extension for file names.

Source: https://www.adobe.com/creativecloud/file-types/image/comparison/jpeg-vs-jpeg-2000.html#:~:text=JPGs%20and%20JPEGs%20are%20the,letter%20extension%20for%20file%20names.
hero member
Activity: 1442
Merit: 775
March 03, 2023, 10:47:12 PM
#15
Forum is powered by SMF software and it's good to read documents for SMF software for general information. However, theymos customize some forum features and it's no better place to check it than in the forum.

Forum user avatar gives you most up to date information.
OK, APNGs are now detected. Old ones are grandfathered for now, in part because people have ongoing campaigns, but in the future I might (or might not) go through and remove them.
legendary
Activity: 1680
Merit: 6524
Fully-fledged Merit Cycler|Spambuster'23|Pie Baker
March 03, 2023, 03:09:42 PM
#14
This should have explained you already that there is no connection between the forum and the sites where you tried to upload your image...
I think I had bad choices of word. I was able to upload the file on image hosting site without any issue, it allowed me to upload webp file if I'm not mistaken but when I implemented the bbcode on bitcointalk, the image wasn't displayed here.


Ohhhh, now I understand what you meant! Yes, this changes things completely... But are you sure you actually managed to upload the .webp picture on that site? Do you remember, at least, what site it was? I am asking because not many websites accepts .webp images and, perhaps, you do not remember well... As you saw, in my earlier post, imgur also does not allow uploading .webp images, notImgBB. I mean maybe we could try this again, following exact steps you made first, in order to see exactly where the problem is.



I see. I have used gif, png and jpg. Can't remember if I have ever used JPEG or not.

I used .jpeg today and it works fine. .gif and .png also work for sure (unless dimension limit of 2.5 MB is reached).
legendary
Activity: 2156
Merit: 2100
Marketing Campaign Manager |Telegram ID- @LT_Mouse
March 03, 2023, 03:35:53 AM
#13

This should have explained you already that there is no connection between the forum and the sites where you tried to upload your image...
I think I had bad choices of word. I was able to upload the file on image hosting site without any issue, it allowed me to upload webp file if I'm not mistaken but when I implemented the bbcode on bitcointalk, the image wasn't displayed here.

As far as I know, the forum's image proxy is limited to GIF, PNG and JPG (probably also JPEG).
I see. I have used gif, png and jpg. Can't remember if I have ever used JPEG or not.
legendary
Activity: 1974
Merit: 2124
March 02, 2023, 11:38:48 AM
#12
You, TryNinja are two guys I see are capable to do that.
Yes they can figure it out and if @TryNinja can figure it out he would definitely come up with this service as he is usually working on lot of tools to help forum members.

OP, there are image converter sites online, free tools. You can convert webp, svg or any other format to png, jpeg etc. Use them.
Only if we are trying to upload image in any format that's not supported by the image hosting sites as usually we have them in .jpg or .png format as I have no problem in image uploading ever but yes there are many services through which you can easily convert the format without even compressing the file.
legendary
Activity: 2800
Merit: 2736
Farewell LEO: o_e_l_e_o
March 02, 2023, 11:06:31 AM
#11
Someone should setup an image host dedicated only to Bitcointalk, that converts all images to a working format.
You, TryNinja are two guys I see are capable to do that.

OP, there are image converter sites online, free tools. You can convert webp, svg or any other format to png, jpeg etc. Use them.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
March 02, 2023, 05:12:54 AM
#10
I thought about it too, but I wouldn't know how to do it. And there's legal implications: you'll need to remove illegal images, or copyrighted images.
The way I envisioned such a service is making it completely transparent, so anyone can download a backup of all images. If your service ever disappears, a new one could be started and all that's needed is replacing the links in the forum's database to the new domain name. It would be a way to ensure images are still available in the far future. I started by using tinypic, but they quit years ago so all those images are gone.

The problem with this is the storage of images. Such a backup would take up quite a few gigabytes. But I think the idea is very interesting, and I could think of something.

The service I thought of would use Amazon Cloud hosting or some similar service. To help manage the accommodation. Basically I would only be managing the front end of the site, where the hosting would be provided by these services. Do you think that would be interesting?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
March 02, 2023, 04:49:48 AM
#9
I've thought about setting up this type of service.
But I was afraid that there would be little adherence, since there are already so many equivalent services, that I didn't even try. Undecided
I thought about it too, but I wouldn't know how to do it. And there's legal implications: you'll need to remove illegal images, or copyrighted images.
The way I envisioned such a service is making it completely transparent, so anyone can download a backup of all images. If your service ever disappears, a new one could be started and all that's needed is replacing the links in the forum's database to the new domain name. It would be a way to ensure images are still available in the far future. I started by using tinypic, but they quit years ago so all those images are gone.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
March 01, 2023, 04:23:10 PM
#8
Someone should setup an image host dedicated only to Bitcointalk, that converts all images to a working format.

I've thought about setting up this type of service.
But I was afraid that there would be little adherence, since there are already so many equivalent services, that I didn't even try. Undecided
legendary
Activity: 1680
Merit: 6524
Fully-fledged Merit Cycler|Spambuster'23|Pie Baker
March 01, 2023, 04:12:45 PM
#7
It also happened to me, but I wasn't using imgur as my image hosting site I used imgbb.com. Although, it didn't display any error like that of imgur but still yet the forum could render the image, so I had to delete the whole post because I was quoting an Op for visibility.

This could happen for various reasons... For example: was the picture larger than 2.5 MB? If yes, this is the reason.

Another reason: how did you try to upload the picture on the forum? Simply by adding its link between img-/img brackets? I mean this link: https://imgur.com/a/i5LE0HB.

If yes, again, this is the reason. You don't have to put between img-/img brackets the direct link to the pic. Instead, you have to have to click on the uploaded picture, in order to open it in a new tab, then right-click on the pic after you uploaded it on ImgBB and select "Copy link" or "Copy image location". By doing so, you'll get a link ending in ".png" or ".jpg". And that is the link you should insert between img-/img.

Example: if you'll type this inside your post, no image will be displayed:

Code:
[img]https://ibb.co/25JPKx9[/img]

Trying to write the above BBCode sequence inside your topic will end up in this:



That is a picture I uploaded on ImgBB. Now I open it in a new tab. For doing that I either click on it or copy that URL and paste it in a new tab. Once the image is displayed in a new tab I right-click on it and select "Copy image location". This generates a new URL, ending in ".png": https://i.ibb.co/7bhVyPf/Untitled4.png. And this is what you have to place between img-/img:

Code:
[img]https://i.ibb.co/7bhVyPf/Untitled4.png[/img]

Now the image is displayed:





Then, if none of these work, always remember:

If you have any other complains, well...
Cheesy
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
March 01, 2023, 04:01:25 PM
#6
As far as I know, the forum's image proxy is limited to GIF, PNG and JPG (probably also JPEG).

Someone should setup an image host dedicated only to Bitcointalk, that converts all images to a working format.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
March 01, 2023, 03:39:27 PM
#5
It also happened to me, but I wasn't using imgur as my image hosting site I used imgbb.com. Although, it didn't display any error like that of imgur but still yet the forum could render the image, so I had to delete the whole post because I was quoting an Op for visibility.

But the forum does not render images.
Honestly, I don't see much need in using .webp files, since a .png or .jpeg 90% has more than enough quality for most scenarios here on the forum.
hero member
Activity: 700
Merit: 541
Bitcoin Casino Est. 2013
March 01, 2023, 03:27:49 PM
#4
[~snipped~]
There was nothing wrong. It's just the image hosting site did not accept this format. I tried to upload a .webp image on imgur and it doesn't work. This is what it shows:
[~snipped~]

It also happened to me, but I wasn't using imgur as my image hosting site I used imgbb.com. Although, it didn't display any error like that of imgur but still yet the forum could render the image, so I had to delete the whole post because I was quoting an Op for visibility.
legendary
Activity: 1680
Merit: 6524
Fully-fledged Merit Cycler|Spambuster'23|Pie Baker
March 01, 2023, 03:07:19 PM
#3
I was trying to upload a webp image on an image hosting site and implement it here but I failed. [...] Is it a problem from image hosting site or from bitcointalk?

Well, based on pure logic, since you could not upload your .webp image on the image hosting site, what's the connection with the forum? Smiley It's a problem that the respective image hosting site does not let you upload .webp images.

I tried with 2 different sites and still, the result was the same.

This should have explained you already that there is no connection between the forum and the sites where you tried to upload your image...

So, I took a screenshot and used that image, and finally, that worked.

Yes, that worked, because the screenshot was saved as .jpg or .png and the image hosting site was accepting this type.

What was wrong with my initial webp file?

There was nothing wrong. It's just the image hosting site did not accept this format. I tried to upload a .webp image on imgur and it doesn't work. This is what it shows:





As far as I know, according to theymos, only forum limitation regarding images is the one about their size:

1.5 does really suck, 2.5 would be perfect
OK, I increased it to 2.5.

If you have any other complains, well...


 Cheesy
hero member
Activity: 1554
Merit: 880
pxzone.online
March 01, 2023, 11:27:27 AM
#2
That's it. Just use .png or .jpg file image instead of webp. Considering this is an old version of smf so highly likely that it's the case.

Edit: i found this smf thread[1], even the latest versions doesnt support the same file type.

[1] https://www.simplemachines.org/community/index.php?topic=582141.0
Pages:
Jump to: