You can easily embed the image use a shared URL of Google Photos.
Usage
- Open the google photo site (https://photos.google.com/)
- Choose an embedded image you want to blog in Google Photos.
- Click the Share button, you get a shareable link.
- Copy the shared link (https://photos.app.goo.gl/xxxxxxx) and paste it into the blog content.
Notice
- AMP support must be using Automattic AMP plugin or theme template with pre_amp_render_post action hook.
- Image URL is the unofficial way to get from OGP image. If the specification to share Google photo has been changed, there are times when it can not be used.
Customize
- It is displaying the OGP data as a caption.
- The size of the image, alignment, captions, etc. specified in the parameter.
General Parameter
- width : pixsels (width=”400″)
- height : pixsels (height=”400″)
- align : alignnone / aliginleft / aligncenter / alignright (align=”aligncenter”)
- caption : caption text. If the non-display caption=”false” set.
- type : gif (default jpg) If possible, displayed in a GIF animation format.
e.g. [embed width=”320″ height=”150″ align=”alignright” type=”gif” caption=”xxxxxxx”]https://photos.app.goo.gl/xxxxxxx[/embed]
Special Parameter (picopt)
- w : width pixsels
- h : height pixsels
- s : long side pixsels
- r : rotete image 90/180/270
- c : Trimming from the center of the image
- p : Trimming centered on the person or the like in the image
- no : Meybe. If possible, video->GIF animation conversion
e.g. [embed picopt=”w320-h150-r90-p”]https://photos.app.goo.gl/xxxxxxx[/embed]
※ Parameters of picopt is unofficial. (estimated from picasa image customization options)
日本語の説明