Here is something that hardly anyone talks about: the image addresses for deviations have become incredibly long. As in, literally hundreds of characters long. Right-click on any deviation and select "Copy Image Address", paste it anywhere, and you'll see a never-ending stream of gibberish letters. It has been like this for a few months, and I was hoping it would get fixed at some point, but no. This occurs both on Eclipse and Regular DeviantArt.
Example:
Sta.sh files have always had very short hyperlinks, but what about the image addresses??
Let's look at
sta.sh/017s4t9q6t00 . I use it on my page.
To insert this image on my page I had to copy the image address, which was:
https://orig00.deviantart.net/51ff/f/2017/022/2/4/galaxianista_v2_by_galaxianista-dawf7eu.png
I know it used to be this because it's still written in my custom box.
However this is the same image's URL today:
https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/d1ec0bd0-8f09-4540-8a1a-a7942219e642/dawf7eu-db581ed6-f418-4036-b49d-29ce91b5353d.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcL2QxZWMwYmQwLThmMDktNDU0MC04YTFhLWE3OTQyMjE5ZTY0MlwvZGF3ZjdldS1kYjU4MWVkNi1mNDE4LTQwMzYtYjQ5ZC0yOWNlOTFiNTM1M2QucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.zgw0xZVSfwIWfkh6ZBz7cXo4qAsEudiPeWT1uvkthPk
Why is it so retardedly long now. The long string of text at the end is actually a JSON Web Token (JWT), encoded in a HS256 algorithm, of all things.
JWT's are written in base64 and can be decoded. Here is the last part of the URL, after token=, translated from base64 to ASCII.
{"typ":"JWT","alg":"HS256"}{"sub":"urn:app:7e0d188982264373a5f0d415ea0d26e0","iss":"urn:app:7e0d188982264373a5f0d415ea0d26e0","obj":[[{"path":"\/f\/d1ec0bd0-8f09-4540-8a1a-a7942219e642\/dawf7eu-db581ed6-f418-4036-b49d-29ce91b5353d.png"}]],"aud":["urn:service:file.download"]} (ending key omitted)
It mostly repeats the previous part of the URL but puts it as a request to transfer the image between DeviantArt and Wix servers. If I knew more about web programming maybe I'd know the reason why dA decided to put their security measures directly in their image URLs. (Though, based on how glitchy Eclipse is at the moment, it might be a stupid reason)
This has happened with every png and jpeg I've encountered, and basically this makes embedding on other sites more difficult. Some websites have a character limit when it comes to embedding images. Not to mention it clutters up custom boxes. Sta.sh has always been a useful embedding tool for me. The new Wix system, or Eclipse, or both, have made it d i s g u s t a n g.
Interestingly, gif files still kept the short URL's. Thank the stars!!Will image addresses still work after removing the JSON web tokens?? Yes.... and no. After deleting the token from my previous URL, it looks like this:
https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/d1ec0bd0-8f09-4540-8a1a-a7942219e642/dawf7eu-db581ed6-f418-4036-b49d-29ce91b5353d.png
It's still stupidly long, but not terrible. But it doesn't work.
However, Inspect Element reveals a smaller version of the image, found here:
https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/d1ec0bd0-8f09-4540-8a1a-a7942219e642/dawf7eu-db581ed6-f418-4036-b49d-29ce91b5353d.png/v1/fit/w_150,h_133,strp/galaxianista_v2_by_galaxianista_dawf7eu-150.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTMzIiwicGF0aCI6IlwvZlwvZDFlYzBiZDAtOGYwOS00NTQwLThhMWEtYTc5NDIyMTllNjQyXC9kYXdmN2V1LWRiNTgxZWQ2LWY0MTgtNDAzNi1iNDlkLTI5Y2U5MWI1MzUzZC5wbmciLCJ3aWR0aCI6Ijw9NDU1In1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmltYWdlLm9wZXJhdGlvbnMiXX0.k6W2HWgu_uJdaokZE4kYQgxm10YUgjq_eDs62oymLOA
It has the same ass-tier length but a slightly different appearance; it contains the names of the file and author, like the old version. Let's remove the token again:
https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/d1ec0bd0-8f09-4540-8a1a-a7942219e642/dawf7eu-db581ed6-f418-4036-b49d-29ce91b5353d.png/v1/fit/w_150,h_133,strp/galaxianista_v2_by_galaxianista_dawf7eu-150.png
It actually works, though the image is a lot smaller. But we have a rule now: If the image has a preview version, the preview doesn't require a token, and most of the URL, from "token" onward, can be deleted. The preview version is identifiable by having the title of the art in it. I've noticed that for large images, right-clicking without zooming in will likely get you the preview URL. Most of the time. For small images, the 150px thumbnail is the only option, and you have to hunt for it. A lot of trial and error is involved.This image has been embedded using the shortened URL method:If you copy it you'll see the token is gone from the address. The preview was still large at 927x862 pixels!!Current options:
- Copy preview URL and cut out token
- Upload images as 1 frame gifs
- Use imgur (ruins the fun)
- Use Discord attachment URL, and hope Discord isn't down
Skin modified by Galaxianista from pica-ae