-
-
Save wordpressvn/1885d6541b58e79cd04117197b39fcf1 to your computer and use it in GitHub Desktop.
Revisions
-
Sauerstoffdioxid revised this gist
Nov 10, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -90,7 +90,7 @@ Compression settings are ignored on any animated output, except for `rwa` output |------- |------------------------------------- | | no | If the file is a video (on Google Photos), this removes the play button from the thumbnail. | | o | Similar to the above, this will make thumbnails of videos have the play button, overwriting `no` | | m# | Video playback. Number matches the [YouTube video codes](https://github.com/ytdl-org/youtube-dl/blob/a8035827177d6b59aca03bd717acb6a9bdd75ada/youtube_dl/extractor/youtube.py#L1122), but only few will actually be available. Working most often: 15: Original (only available if it's actually streamable and original files are preserved \[disabled photo optimization in Google Photos]. Requires mp4 I believe), 18: 360p MP4, 22: 720p MP4, 36: 180p 3GP, 37: 1080p MP4, 140: AAC audio-only | | dv | download a Google-encoded version of the video | | mm,* | Mostly used to download manifest files for a few streaming technologies. Possible values: `mm,dash` and `mm,hls` (note the comma). You can also set any valid video format code using this, see `m#` regarding those. | | vm | when used with the above, modifies some response headers. Recommended. | -
Sauerstoffdioxid revised this gist
Jul 6, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,6 +58,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0xrrggbb` or `bc0xaarrggbb` (defaults to transparent) | | pd | pads the image to the given size using `pc#` color | | pc | set the background color for padded images. If not set, falls back to `c#`, or black. Accepts hex input: `bc0xrrggbb` or `bc0xaarrggbb` (defaults to transparent) | | fSoften=a,b,c | blurs the image, mixed with the non-blurred image. Parameter a doesn't seem to make any difference, b specifies the blurring amount and c the mix with 0 being all blurred and 100 being the original image | #### Output Formats @@ -116,7 +117,7 @@ Note that even if I said those `m#` codes work most often, that **doesn't** mean ### Tiled Images With the `g` (or `fg`) option you can get an xml file containing tiling information. To use the tiling, special parameters `x`, `y` and `z` can be used. `x` and `y` specify which tile should be returned. `z` specifies how far zoomed out the images are. For `x` and `y` refer to `num_tiles_x` and `num_tiles_y` respectively from the xml. `z` maps to the index of each `pyramid_level`, 0 being the most zoomed out. ### Unknown Parameters -
Sauerstoffdioxid revised this gist
Aug 18, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -131,6 +131,7 @@ These are parameters that exist, but where I have no idea what they do or how to | df | | | gd | | | il | | | iv# | 0 or 1 | | lf | | | md | | | mo | | -
Sauerstoffdioxid revised this gist
Jul 21, 2020 . 1 changed file with 10 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,6 +51,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | fh | flip horizontally | | fv | flip vertically | | r# | rotate by # degrees *(must be one of the following: 90, 180, 270)* | | ba# | adds a little symbol to the bottom right corner (stars, a checkmark, etc). valid range: 0 to 11 | | br# | border radius of #px. (can be used without specifying a border.) see also `bc#` background color option below. | | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0xrrggbb` or `c0xaarrggbb` (defaults to transparent) | @@ -65,6 +66,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | rj | forces JPEG output. Does not support transparency. Also see `bc#` background color above. | | rp | forces PNG output. (Animated PNG not supported.) | | rw | forces WebP output. *Does* support transparency and animation. | | rwa | forces animated WebP output on animated input. | | rg | forces GIF output. | | rh | forces MP4 output. (Intented for GIF conversion.) Does not support transparency. Also see `bc#` background color above. | | nw | No WebP. Disables WebP output even if requested with `rw`. Falls back to the original format. | @@ -79,7 +81,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | Compression settings are ignored on any animated output, except for `rwa` output setting. #### Video Specific @@ -125,18 +127,22 @@ These are parameters that exist, but where I have no idea what they do or how to | a | | | b | | | r | | | al | | | df | | | gd | | | il | | | lf | | | md | | | mo | | | mv | ~~requires a video. not sure what it does or how to use.~~ honestly, not sure. but does not always work on non-video content. | | nc | | | nd | | | ns | | | nt0 | | | pa | | | rwu | likely related to webp compression, but does seemingly nothing | | sg | | | sm | | | fm | gives an image of the default avatar | | cp# | | | pc# | | -
Sauerstoffdioxid revised this gist
Jul 3, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,7 +55,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0xrrggbb` or `c0xaarrggbb` (defaults to transparent) | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0xrrggbb` or `bc0xaarrggbb` (defaults to transparent) | | pd | pads the image to the given size using `pc#` color | | pc | set the background color for padded images. If not set, falls back to `c#`, or black. Accepts hex input: `bc0xrrggbb` or `bc0xaarrggbb` (defaults to transparent) | #### Output Formats -
Sauerstoffdioxid revised this gist
Jul 2, 2020 . 1 changed file with 12 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,8 +62,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | param | description | |------- |----------------------------------------------------------------------------------------------------------------------- | | rj | forces JPEG output. Does not support transparency. Also see `bc#` background color above. | | rp | forces PNG output. (Animated PNG not supported.) | | rw | forces WebP output. *Does* support transparency and animation. | | rg | forces GIF output. | | rh | forces MP4 output. (Intented for GIF conversion.) Does not support transparency. Also see `bc#` background color above. | | nw | No WebP. Disables WebP output even if requested with `rw`. Falls back to the original format. | @@ -78,6 +78,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | Compression settings are ignored on any animated output. #### Video Specific | param | description | @@ -102,6 +104,13 @@ Note that even if I said those `m#` codes work most often, that **doesn't** mean | t* | used for some kind of authentication on artsandculture.google.com. Otherwise, anything can follow without making any apparent difference. Can be used if your target url is required to have a valid file extension: `t.jpg` | | q* | works similar to `t*`. Don't know it's original purpose. | #### Unsorted | param | description | |------- |------------------------------------- | | k | disables animations. by default, the first frame is shown. see `a#` below. | | a# | if the source is an animation (eg. a GIF), select a certain frame instead. Introduces the play button, see `no`. | ### Tiled Images With the `g` (or `fg`) option you can get an xml file containing tiling information. To use the tiling, special parameters `x`, `y` and `z` can be used. `x` and `y` specify which tile should be returned. `z` specifies how far zoomed out the images are. For `x` and `y` refer to `num_tiles_x` and `num_tiles_y` respectively from the xml. `z` maps to the index of each pyramid_level, 0 being the most zoomed out. @@ -112,21 +121,19 @@ These are parameters that exist, but where I have no idea what they do or how to | param | notes | |------- |-------------------------------------------------------------------------------------------------------------------- | | a | | | b | | | r | | | nc | | | nd | | | ns | | | al | | | gd | | | il | | | lf | | | md | | | mo | | | mv | ~~requires a video. not sure what it does or how to use.~~ honestly, not sure. but does not always work on non-video content. | | pa | | | sg | | | fm | gives an image of the default avatar | -
Sauerstoffdioxid revised this gist
Jun 27, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,8 +53,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | r# | rotate by # degrees *(must be one of the following: 90, 180, 270)* | | br# | border radius of #px. (can be used without specifying a border.) see also `bc#` background color option below. | | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0xrrggbb` or `c0xaarrggbb` (defaults to transparent) | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0xrrggbb` or `bc0xaarrggbb` (defaults to transparent) | | pd | pads the image to the given size using `c#` color | #### Output Formats -
Sauerstoffdioxid revised this gist
Jun 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -70,7 +70,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | h | HTML output. A simple html file with a single image element the image as specified (adds ft parameter). | | g | outputs some weird xml file. see Tiled Images below. | | fg | same as g | | pg | same as g but encoded as protocol buffer | | d | force a download of the file. | | ft | apply lossless compression. Doesn't matter for most cases, as it's automatically applied when the image is processed. | | ng | probably like `ft` above, just not quite as efficient. | -
Sauerstoffdioxid revised this gist
Jun 23, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -74,7 +74,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | d | force a download of the file. | | ft | apply lossless compression. Doesn't matter for most cases, as it's automatically applied when the image is processed. | | ng | probably like `ft` above, just not quite as efficient. | | lo | force lossy conversion. Only really useful for webp output, because webp supports both, lossy and lossless modes, and will default to the lossless one for PNG input, ignoring `l#`. | | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | -
Sauerstoffdioxid revised this gist
Jun 23, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Aspect ratio will be preserved by default. Also, `nu` seems to be set by default |------- |------------------------------------- | | c | crop the image | | cc | circular mask applied over the crop. see also `bc#` background color option below. | | ci | does not upscale the image when a larger size is requested, and seems to always return a square crop | | p | crop with a different focus | | pf | same as `p`? | | pp | same as `p`? | -
Sauerstoffdioxid revised this gist
Jun 3, 2020 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -99,8 +99,8 @@ Note that even if I said those `m#` codes work most often, that **doesn't** mean | e# | How long the file may be cached by the browser. Number is `max-age` in days. | | ip | do not strip meta data | | sm | strip color profiles | | t* | used for some kind of authentication on artsandculture.google.com. Otherwise, anything can follow without making any apparent difference. Can be used if your target url is required to have a valid file extension: `t.jpg` | | q* | works similar to `t*`. Don't know it's original purpose. | ### Tiled Images @@ -118,7 +118,6 @@ These are parameters that exist, but where I have no idea what they do or how to | r | | | nc | | | nd | | | ns | | | a# | | | al | | -
Sauerstoffdioxid revised this gist
Jun 2, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -72,6 +72,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | fg | same as g | | pg | downloads a file called `tile.binarypb`. idk what it is. | | d | force a download of the file. | | ft | apply lossless compression. Doesn't matter for most cases, as it's automatically applied when the image is processed. | | ng | probably like `ft` above, just not quite as efficient. | | lo | force lossy conversion. Only really useful for webp output, because webp supports both, lossy and lossless modes, and will default to the lossless one, ignoring `l#`. | | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | @@ -110,7 +112,6 @@ These are parameters that exist, but where I have no idea what they do or how to | param | notes | |------- |-------------------------------------------------------------------------------------------------------------------- | | k | | | a | | | b | | -
Sauerstoffdioxid revised this gist
Jun 2, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -96,6 +96,7 @@ Note that even if I said those `m#` codes work most often, that **doesn't** mean |------- |------------------------------------- | | e# | How long the file may be cached by the browser. Number is `max-age` in days. | | ip | do not strip meta data | | sm | strip color profiles | | t* | seems to act like a placeholder option. Anything can follow without making any apparent difference. Can be used if your target url is required to have a valid file extension: `t.jpg` | | q* | like `t*` | @@ -128,7 +129,6 @@ These are parameters that exist, but where I have no idea what they do or how to | mv | requires a video. not sure what it does or how to use. | | pa | | | sg | | | fm | gives an image of the default avatar | | cp# | | | pc# | | -
Sauerstoffdioxid revised this gist
May 24, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -68,7 +68,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | rh | forces MP4 output. (Intented for GIF conversion.) Does not support transparency. Also see `bc#` background color above. | | nw | No WebP. Disables WebP output even if requested with `rw`. Falls back to the original format. | | h | HTML output. A simple html file with a single image element the image as specified (adds ft parameter). | | g | outputs some weird xml file. see Tiled Images below. | | fg | same as g | | pg | downloads a file called `tile.binarypb`. idk what it is. | | d | force a download of the file. | @@ -125,7 +125,7 @@ These are parameters that exist, but where I have no idea what they do or how to | lf | | | md | | | mo | | | mv | requires a video. not sure what it does or how to use. | | pa | | | sg | | | sm | | -
Sauerstoffdioxid revised this gist
May 24, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Replace the bolded parts with the parameters. ## The Parameters `#` represents numbers; `*` is used as a wildcard, meaning anything can follow. Parameters can be combined by joining the with a hyphen, eg. `w200-h100-c`. @@ -84,7 +84,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | o | Similar to the above, this will make thumbnails of videos have the play button, overwriting `no` | | m# | Video playback. Number matches the [YouTube video codes](https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L434), but only few will actually be available. Working most often: 15: Original (only available if it's actually streamable and original files are preserved \[disabled photo optimization in Google Photos]. Requires mp4 I believe), 18: 360p MP4, 22: 720p MP4, 36: 180p 3GP, 37: 1080p MP4, 140: AAC audio-only | | dv | download a Google-encoded version of the video | | mm,* | Mostly used to download manifest files for a few streaming technologies. Possible values: `mm,dash` and `mm,hls` (note the comma). You can also set any valid video format code using this, see `m#` regarding those. | | vm | when used with the above, modifies some response headers. Recommended. | The query parameter `title` can also be used in conjunction with any valid `m#` value to download the video with specified title, ie.: `https://lh3.googleusercontent.com/`*`[some long hash]`*`=m18?title=aaaa` would download a 360p copy called aaaa.mp4. -
Sauerstoffdioxid revised this gist
May 23, 2020 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Aspect ratio will be preserved by default. Also, `nu` seems to be set by default | pf | same as `p`? | | pp | same as `p`? | | n | similar to the `p` crop. requires both `w` and `h` to be set. | | fcrop64=1,aaaabbbbccccdddd | free crop. Each block specifies the position of one border (a = left, b = top, c = right, d = bottom). Each hexadecimal value is calculated according to this formula `pos = 0xYYYY / 0xFFFF` or `0xYYYY = pos * 0xFFFF` where `0xYYYY` is the hexadecimal value we're looking for and `pos` is the distance from the top left corner in percent. For instance, `fcrop64=1,00008000ffffffff` would give you the bottom half of the picture. | I'm not too sure how `c` and `p` are different from another. The crop parameters change the "fit into this size" approach from the resizing parameters into "fill this space". Cropping will force a resize even if the image is smaller, unless `nu` is used. @@ -82,10 +82,13 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters |------- |------------------------------------- | | no | If the file is a video (on Google Photos), this removes the play button from the thumbnail. | | o | Similar to the above, this will make thumbnails of videos have the play button, overwriting `no` | | m# | Video playback. Number matches the [YouTube video codes](https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L434), but only few will actually be available. Working most often: 15: Original (only available if it's actually streamable and original files are preserved \[disabled photo optimization in Google Photos]. Requires mp4 I believe), 18: 360p MP4, 22: 720p MP4, 36: 180p 3GP, 37: 1080p MP4, 140: AAC audio-only | | dv | download a Google-encoded version of the video | | mm,* | Downloads manifest files for a few streaming technologies. Possible values: `mm,dash` and `mm,hls` (note the comma) | | vm | when used with the above, modifies some response headers. Recommended. | The query parameter `title` can also be used in conjunction with any valid `m#` value to download the video with specified title, ie.: `https://lh3.googleusercontent.com/`*`[some long hash]`*`=m18?title=aaaa` would download a 360p copy called aaaa.mp4. Note that even if I said those `m#` codes work most often, that **doesn't** mean they will *always* be available! Same goes for `mm,*`, especially with hls. #### Various @@ -121,7 +124,6 @@ These are parameters that exist, but where I have no idea what they do or how to | il | | | lf | | | md | | | mo | | | mv | requires a video. will yield the normal thumbnail? | | pa | | @@ -133,7 +135,7 @@ These are parameters that exist, but where I have no idea what they do or how to | sc# | | | vb# | | ## Sources - https://developers.google.com/photos/library/guides/access-media-items (the only official documentation I could find) - https://www.amp-blogger.com/2019/10/url-image-parameter-for-custom-blogger.html -
Sauerstoffdioxid revised this gist
May 23, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -135,6 +135,7 @@ These are parameters that exist, but where I have no idea what they do or how to ## Special Thanks - https://developers.google.com/photos/library/guides/access-media-items (the only official documentation I could find) - https://www.amp-blogger.com/2019/10/url-image-parameter-for-custom-blogger.html - https://sneeit.com/using-blogger-blogspot-image-url-structure-for-cropping-and-resizing/ and its comments -
Sauerstoffdioxid revised this gist
May 23, 2020 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Google/Blogger Image URL Parameters This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations. ## Where to use them? @@ -80,8 +80,6 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | param | description | |------- |------------------------------------- | | no | If the file is a video (on Google Photos), this removes the play button from the thumbnail. | | o | Similar to the above, this will make thumbnails of videos have the play button, overwriting `no` | | m# | Video playback. Number matches the YouTube video codes, But only few will actually be available. 15 Original (only available if it's actually streamable and original files are preserved \[disabled photo optimization in Google Photos]. Requires mp4 I believe), 18 360p | @@ -96,7 +94,7 @@ The query parameter `title` can also be used in conjunction with any valid `m#` | e# | How long the file may be cached by the browser. Number is `max-age` in days. | | ip | do not strip meta data | | t* | seems to act like a placeholder option. Anything can follow without making any apparent difference. Can be used if your target url is required to have a valid file extension: `t.jpg` | | q* | like `t*` | ### Tiled Images -
Sauerstoffdioxid revised this gist
May 23, 2020 . 1 changed file with 17 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -76,12 +76,27 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | #### Video Specific | param | description | |------- |------------------------------------- | | e# | How long the file may be cached by the browser. Number is `max-age` in days. | | ip | do not strip meta data | | no | If the file is a video (on Google Photos), this removes the play button from the thumbnail. | | o | Similar to the above, this will make thumbnails of videos have the play button, overwriting `no` | | m# | Video playback. Number matches the YouTube video codes, But only few will actually be available. 15 Original (only available if it's actually streamable and original files are preserved \[disabled photo optimization in Google Photos]. Requires mp4 I believe), 18 360p | | dv | download a Google-encoded version of the video | The query parameter `title` can also be used in conjunction with any valid `m#` value to download the video with specified title, ie.: `https://lh3.googleusercontent.com/`*`[some long hash]`*`=m18?title=aaaa` would download a 360p copy called aaaa.mp4. #### Various | param | description | |------- |------------------------------------- | | e# | How long the file may be cached by the browser. Number is `max-age` in days. | | ip | do not strip meta data | | t* | seems to act like a placeholder option. Anything can follow without making any apparent difference. Can be used if your target url is required to have a valid file extension: `t.jpg` | | q* | | ### Tiled Images @@ -94,28 +109,23 @@ These are parameters that exist, but where I have no idea what they do or how to | param | notes | |------- |-------------------------------------------------------------------------------------------------------------------- | | ft | automatically added by eg. the html output | | k | | | a | | | b | | | r | | | nc | | | nd | | | ng | | | ns | | | a# | | | al | | | gd | | | il | | | lf | | | md | | | mm | requires a video as source. requires unknown parameters. | | mo | | | mv | requires a video. will yield the normal thumbnail? | | pa | | | sg | | | sm | | -
Sauerstoffdioxid revised this gist
May 23, 2020 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,7 +56,6 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0x######` | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0x######` | | pd | pads the image to the given size using `c#` color | #### Output Formats @@ -77,6 +76,13 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | #### Various | param | description | |------- |------------------------------------- | | e# | How long the file may be cached by the browser. Number is `max-age` in days. | | ip | do not strip meta data | ### Tiled Images With the `g` (or `fg`) option you can get an xml file containing tiling information. To use the tiling, special parameters `x`, `y` and `z` can be used. `x` and `y` specify which tile should be returned. `z` specifies how far zoomed out the images are. For `x` and `y` refer to `num_tiles_x` and `num_tiles_y` respectively from the xml. `z` maps to the index of each pyramid_level, 0 being the most zoomed out. @@ -88,7 +94,6 @@ These are parameters that exist, but where I have no idea what they do or how to | param | notes | |------- |-------------------------------------------------------------------------------------------------------------------- | | ft | automatically added by eg. the html output | | o | | | k | | | a | | @@ -102,7 +107,6 @@ These are parameters that exist, but where I have no idea what they do or how to | no | | | ns | | | a# | | | al | | | gd | | | il | | -
Sauerstoffdioxid revised this gist
May 20, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Parameters can be combined by joining the with a hyphen, eg. `w200-h100-c`. | nu | No Upscaling of files smaller than requested. | | s | Force the scaling, ignoring the aspect ratio. Requires both `w` and `h` to be explicitly set. ignores `nu`. | Aspect ratio will be preserved by default. Also, `nu` seems to be set by default for resize-only requests. Setting `s`, `w` or `h` to zero returns the full image. #### Cropping -
Sauerstoffdioxid revised this gist
May 20, 2020 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,7 +55,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0x######` | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0x######` | | pd | pads the image to the given size using `c#` color | | ip | do not strip meta data | #### Output Formats @@ -71,6 +72,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | g | outputs some weird xml file | | fg | same as g | | pg | downloads a file called `tile.binarypb`. idk what it is. | | d | force a download of the file. | | lo | force lossy conversion. Only really useful for webp output, because webp supports both, lossy and lossless modes, and will default to the lossless one, ignoring `l#`. | | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | @@ -105,7 +107,6 @@ These are parameters that exist, but where I have no idea what they do or how to | gd | | | il | | | lf | | | md | | | mm | might look like nothing, but the response headers suggest it is indeed an option if called with correct parameters | | mo | | @@ -115,7 +116,6 @@ These are parameters that exist, but where I have no idea what they do or how to | sg | | | sm | | | fm | gives an image of the default avatar | | cp# | | | pc# | | | sc# | | -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -71,8 +71,9 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | g | outputs some weird xml file | | fg | same as g | | pg | downloads a file called `tile.binarypb`. idk what it is. | | lo | force lossy conversion. Only really useful for webp output, because webp supports both, lossy and lossless modes, and will default to the lossless one, ignoring `l#`. | | l# | set the quality level for lossy compression formats (jpg, webp). Takes precedence over `v#`. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to automatically apply `lo` aswell. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | ### Tiled Images -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -109,6 +109,7 @@ These are parameters that exist, but where I have no idea what they do or how to | mm | might look like nothing, but the response headers suggest it is indeed an option if called with correct parameters | | mo | | | mv | like mm | | dv | like mm | | pa | | | sg | | | sm | | -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -66,7 +66,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | rw | forces WebP output. *Does* support transparency. | | rg | forces GIF output. | | rh | forces MP4 output. (Intented for GIF conversion.) Does not support transparency. Also see `bc#` background color above. | | nw | No WebP. Disables WebP output even if requested with `rw`. Falls back to the original format. | | h | HTML output. A simple html file with a single image element the image as specified (adds ft parameter). | | g | outputs some weird xml file | | fg | same as g | -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -74,6 +74,10 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | l# | set the quality level for lossy compression formats (jpg, webp). Seems to be ignored by the webp output sometimes. Takes precedence over `v#`, even in cases where it doesn't work. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to always be applied. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | ### Tiled Images With the `g` (or `fg`) option you can get an xml file containing tiling information. To use the tiling, special parameters `x`, `y` and `z` can be used. `x` and `y` specify which tile should be returned. `z` specifies how far zoomed out the images are. For `x` and `y` refer to `num_tiles_x` and `num_tiles_y` respectively from the xml. `z` maps to the index of each pyramid_level, 0 being the most zoomed out. ### Unknown Parameters These are parameters that exist, but where I have no idea what they do or how to correctly use them. -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 43 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Aspect ratio will be preserved by default. Also, `nu` seems to be set by default | param | description | |------- |------------------------------------- | | c | crop the image | | cc | circular mask applied over the crop. see also `bc#` background color option below. | | ci | the same as `c`? | | p | crop with a different focus | | pf | same as `p`? | @@ -51,7 +51,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | fh | flip horizontally | | fv | flip vertically | | r# | rotate by # degrees *(must be one of the following: 90, 180, 270)* | | br# | border radius of #px. (can be used without specifying a border.) see also `bc#` background color option below. | | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0x######` | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0x######` | @@ -74,6 +74,47 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | l# | set the quality level for lossy compression formats (jpg, webp). Seems to be ignored by the webp output sometimes. Takes precedence over `v#`, even in cases where it doesn't work. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to always be applied. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | ### Unknown Parameters These are parameters that exist, but where I have no idea what they do or how to correctly use them. | param | notes | |------- |-------------------------------------------------------------------------------------------------------------------- | | ft | automatically added by eg. the html output | | n | | | o | | | k | | | a | | | b | | | r | | | t* | | | q* | | | nc | | | nd | | | ng | | | no | | | ns | | | a# | | | e# | | | al | | | gd | | | il | | | lf | | | lo | | | md | | | mm | might look like nothing, but the response headers suggest it is indeed an option if called with correct parameters | | mo | | | mv | like mm | | pa | | | sg | | | sm | | | fm | gives an image of the default avatar | | ip | does change the filesize, but idk what it actually does | | cp# | | | pc# | | | sc# | | | vb# | | ## Special Thanks - https://www.amp-blogger.com/2019/10/url-image-parameter-for-custom-blogger.html -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,7 +51,7 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | fh | flip horizontally | | fv | flip vertically | | r# | rotate by # degrees *(must be one of the following: 90, 180, 270)* | | br# | rounded borders with #px radius. see also `c#` color option below. | | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0x######` | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0x######` | @@ -61,11 +61,11 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | param | description | |------- |----------------------------------------------------------------------------------------------------------------------- | | rj | forces JPEG output. Does not support transparency. Also see `bc#` background color above. | | rp | forces PNG output. | | rw | forces WebP output. *Does* support transparency. | | rg | forces GIF output. | | rh | forces MP4 output. (Intented for GIF conversion.) Does not support transparency. Also see `bc#` background color above. | | nw | No WebP. Disables WebP output even if requested with `rw`. Might fallback to PNG, so use with caution. | | h | HTML output. A simple html file with a single image element the image as specified (adds ft parameter). | | g | outputs some weird xml file | -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,7 +53,8 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | r# | rotate by # degrees *(must be one of the following: 90, 180, 270)* | | br# | rounded borders with #px radius. see also `c#` background color option below. | | b# | adds a border of #px width in `c#` color. Does not play well together with other editing parameters. | | c# | set the color for editing operations that use them (eg. `b#`). If not set, falls back to white. Accepts hex input: `c0x######` | | bc# | set the background color for formats that don't support transparency. If not set, falls back to `c#`, or black. Accepts hex input: `bc0x######` | | pd | pads the image to the given size using `c#` background color | #### Output Formats -
Sauerstoffdioxid revised this gist
May 19, 2020 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -71,11 +71,11 @@ I'm not too sure how `c` and `p` are different from another. The crop parameters | fg | same as g | | pg | downloads a file called `tile.binarypb`. idk what it is. | | l# | set the quality level for lossy compression formats (jpg, webp). Seems to be ignored by the webp output sometimes. Takes precedence over `v#`, even in cases where it doesn't work. [it's a lowercase `L`] | | v# | also sets the compressions level. # is much more limited, but it seems to always be applied. `v0` is the original image quality. `v1` equals `l60`. `v2` equals `l40`. `v3` and above equal `l20`. *Only works if an output format is explicitly set.* | ## Special Thanks - https://www.amp-blogger.com/2019/10/url-image-parameter-for-custom-blogger.html - https://sneeit.com/using-blogger-blogspot-image-url-structure-for-cropping-and-resizing/ and its comments #### Let me know when you find more options, and I will add them here
NewerOlder