Lets say I have an app that has images hosted in various places… some of them being BlobStore. I want to write a showThumbnail() helper that will take a URL and generate an tag with height/width. Some of these images are hosted on servers that can do dynmic resizing… like in BlobStore I can specify s=xxx to resize it… where other services use different parameters.
is it possible for me to look at the URL and determine that the image is being hosted by BlobStore, so that I know which query params to append for dynamic resizing? the URLs I see look like *.ggpht.com … will this always be the case?
For blobstore in general, @waffle paradox is correct – a blob can be served by any handler, transparently. I presume you’re asking not just about Blobstore though, but specifically about the fast image serving support. In that case, yes, they’ll all be served off the
ggpht.comdomain – but that’s an implementation detail, and could theoretically change in future, so you’d be far better off embedding some metadata in your page that indicates that it’s a blobstore image.