Substack image URLs hide the original file inside an encoded address
Substack serves post images from a CDN whose address includes resize options and, URL-encoded at the end, the stored S3 file. Testing six images from three public posts showed that removing the resize parameters returns the full pixel size, while the decoded S3 address returns the original stored format. Requesting larger widths never enlarged an image, and the server returned identical bytes regardless of the Accept header. The author suggests decoding the portion after the last slash and checking that it begins with the S3 domain before requesting it. The method does not apply to images from other sources such as embeds or sponsor banners.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in