Photon Image API for WordPress

Photon

Photon is an image acceleration and modification service for Jetpack-connected WordPress sites.

Rest形式でアクセスして、加工した画像を取得できるサービス

アクセス方法

http://i0.wp.com/ドメイン名/images/pen.jpg

詳細

Parameter Description Usage
w width (defaults to px, supports %) w=50
h height (defaults to px, supports %) h=50
crop crop x,y,w,h (defaults to %) crop=5,10,20,40
resize resize and crop to given dimensions (px) resize=250,300
fit keep aspect ratio, but fit to within given box (px) fit=100,100
ulb remove black letterboxing ulb
filter apply various imagefilter() filters filter=grayscale
brightness adjusts brightness brightness=100
contrast adjusts contrast contrast=50
colorize applies a color hue colorize=255,0,0
smooth smoothes out the image smooth=2
zoom size images for high pixel ratio devices zoom=2

Example

sepia photo example

Filter sepia

sepia photo example

[emulsion_relate_posts]