I’ve noticed that when we use Glitch CDN links, it appends a parameter v (I guess ‘version’) onto the URL.
I was wondering whether any other undocumented parameters exist for fixing height, width, or compression, to make images smaller.
Sometimes I upload a 1MB image at 2000x2000 but I only want to display it at 800x800. I have to resize and re-export it myself in IrfanView so it would be cool if the CDN could do it. Same goes for jpeg quality.
Anyway, to be completely honest the Glitch CDN is probably not the right choice for the majority of people, the CDN lack a lot of features, like you said yourself regarding resizing, quality, and compression.
On the contrary, it probably is the right choice for the majority of users, but perhaps not for the minority of power users?
I can recommend IrfanView as a dead simple free image editor. It has been around for years and years but it does a great job of resizing and compression. Open your image, Ctrl+R to resize, set a new percentage (it preserves aspect ratio by default), hit S to Save as, set the jpeg quality… done!
That said, I understand that it would be easier not to have to edit the image manually
As far as we know, the assets CDN is a very thin layer on Amazon S3, and S3 doesn’t have that kind of functionality. I would expect the assets system not to add it. But if it really were undocumented, of course I wouldn’t know either 🤷
I don’t think the v parameter is done at the server even. Does putting in an older number really get a previous version? It looks like it’s more meant to bust caches in between S3 and a client.