Generating thumbnails with imgur
Jan. 17th, 2019 08:28 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
So, one way to host art is with a private imgur gallery. I think they don't actually like hotlinking, but then again, they do offer that as an option to the side of every image, so now I'm not sure.
Edit:
shy_magpie found some helpful info about their TOS, which basically boils down to: hotlinking is okay as long as it's not (a) nsfw, or (b) commercial use. The workaround to that is to use an embed unit. The CDN stuff is probably just "don't use our server hosting to make money."
Anyway, in my proposed image reblog idea, quickly generating a thumbnail is pretty key to the process. Imgur is actually really good with that! Lemme show you how simple it is.
So, you go to imgur, you upload an image, and then you click on the image. This is the panel of link options you have on the right:

For just the raw image, you want the one called "Direct Link"
But at the bottom, you can also click on different thumbnail sizes and types, and the links automatically update to be the image that you want (even though the image preview doesn't).
Now here's the magical thing: Different thumbnail sizes is just the same file name, with an extra letter added to the end.
For example:
https://i.imgur.com/rfjKH8z.jpg is the original image
https://i.imgur.com/rfjKH8zt.jpg is the tiny thumbnail. (width=100)
https://i.imgur.com/rfjKH8zm.jpg is the medium thumbnail. (width=200)
https://i.imgur.com/rfjKH8zl.jpg is the large thumbnail. (width=400)
Which means that generating and linking to a thumbnail is the simple matter of adding a letter.
So if you're the artist and you're embedding from imgur, your textarea reblog snippet can be something like:
And if you are someone who wants to reblog from an artist -- if they've indicated permission -- you can also just take their imgur link, add "s" or "m" to the url, and use that as a thumbnail!
Edit:
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Anyway, in my proposed image reblog idea, quickly generating a thumbnail is pretty key to the process. Imgur is actually really good with that! Lemme show you how simple it is.
So, you go to imgur, you upload an image, and then you click on the image. This is the panel of link options you have on the right:

For just the raw image, you want the one called "Direct Link"
But at the bottom, you can also click on different thumbnail sizes and types, and the links automatically update to be the image that you want (even though the image preview doesn't).
Now here's the magical thing: Different thumbnail sizes is just the same file name, with an extra letter added to the end.
For example:
https://i.imgur.com/rfjKH8z.jpg is the original image
https://i.imgur.com/rfjKH8zt.jpg is the tiny thumbnail. (width=100)
https://i.imgur.com/rfjKH8zm.jpg is the medium thumbnail. (width=200)
https://i.imgur.com/rfjKH8zl.jpg is the large thumbnail. (width=400)
Which means that generating and linking to a thumbnail is the simple matter of adding a letter.
So if you're the artist and you're embedding from imgur, your textarea reblog snippet can be something like:
<user name="USERNAME"> posted: <a href="POSTLINK">post title</a><blockquote><img src="IMGUR_THUMBNAIL"></a><blockquote>
And if you are someone who wants to reblog from an artist -- if they've indicated permission -- you can also just take their imgur link, add "s" or "m" to the url, and use that as a thumbnail!
no subject
Date: 2019-01-18 11:35 am (UTC)no subject
Date: 2019-01-19 04:00 pm (UTC)no subject
Date: 2019-01-18 11:45 am (UTC)no subject
Date: 2019-01-18 10:11 pm (UTC)do you, personally, recommend it? cause i might end up going with it eventually, i suppose. just wondering if its better or worse than anything else we've got at this point.
no subject
Date: 2019-01-19 03:26 am (UTC)I have my own server space, so I'll probably just use that for the stuff I post to AO3, and use Backblaze B2 for my nsfw stuff.
no subject
Date: 2019-01-19 06:30 am (UTC)no subject
Date: 2019-01-19 04:04 pm (UTC)What I currently plan to do with my nsfw art is to use Backblaze B2, since that means I don't have to "out" my own website, and even though it's a bit clunky, not particularly more so than DW.