Easy and powerful way to speed up loading of images on your website.
Developed using node with typescript.
Instagram - static.dedeard.my.id - dedeard.my.id - Linkedin
- Clone this repo
yarn installto install all required dependenciesyarn devto run development server and vscode debuggingyarn testto run unit testingyarn buildto compile the typescript codeyarn startto run production server
- Clone this repo
npm run docker:dev upto run development server and vscode debuggingnpm run docker:test upto run unit testingnpm run docker upto run production server
https://cdn.dedeard.my.id/image/:image-urlhttps://cdn.dedeard.my.id/image/:options/:image-url
Note: all requests must use
GETorHEADmethod, otherwise it will be rejected.
For example:
https://cdn.dedeard.my.id/image/w=400,h=300/static.dedeard.my.id/kai.jpg
- JPEG
- PNG
- WebP
- AVIF
- GIF
- SVG
- TIFF
format=:string OR f=:string
Convert image format.
Value: webp - jpeg - jpg - png
For example: /image/format=webp/static.dedeard.my.id/kai.jpg
quality=:percentage OR q=:percentage
Set new image quality in percentage.
Value: 10 - 100
Default: 80
For example: /image/quality=80/static.dedeard.my.id/kai.jpg
width=:pixel OR w=:pixel
Set new image width in pixel.
Value: val > 0
For example: /image/width=600/static.dedeard.my.id/kai.jpg
height=:pixel OR h=:pixel
Set new image height in pixel.
Value: val > 0
For example: /image/height=600/static.dedeard.my.id/kai.jpg
https://cdn.dedeard.my.id/avatar/:nickname.:format?:options
Note: all requests must use
GETorHEADmethod, otherwise it will be rejected.
For example:
https://cdn.dedeard.my.id/avatar/dede ard.jpg?size=320
format=:string OR f=:string
Set avatar format.
Value: webp - jpeg - jpg - png - svg
Default: webp
For example: /avatar/dede ard.png
size=:pixel OR s=:pixel
Set avatar size in pixel.
Value: val > 0
Default: 60
For example: /avatar/dede ard?size=120
maxlength=:pixel OR m=:pixel
Set avatar maximum character length.
Value: 1 - 3
Default: 2
For example: /avatar/dede ard?maxlength=3
color=:hex OR c=:hex
Set avatar text color.
Default: 111827
For example: /avatar/dede ard?color=000000
bgcolor=:hex OR b=:hex
Set avatar background color.
Default: f3f4f6
For example: /avatar/dede ard?color=ffffff
https://cdn.dedeard.my.id/og/:text.:format?:options
Note: all requests must use
GETorHEADmethod, otherwise it will be rejected.
For example:
https://cdn.dedeard.my.id/og/Hello World.jpg?sign=static.dedeard.my.id/og-image
format=:string OR f=:string
Set image format.
Value: webp - jpeg - jpg - png - svg
Default: webp
For example: /og/Hello World.jpg
sign=:string OR s=:string
Set image sign.
For example: /og/Hello World?sign=example.com/path
color=:hex OR c=:hex
Set image text color.
Default 111827
For example: /og/Hello World?color=000000
bgcolor=:hex OR b=:hex
Set image background color.
Default f3f4f6
For example: /og/Hello World?color=ffffff
https://cdn.dedeard.my.id/placeholder/:options
Note: all requests must use
GETorHEADmethod, otherwise it will be rejected.
For example:
https://cdn.dedeard.my.id/placeholder/width=400,height=300.webp
format=:string OR f=:string
Set image format.
Value: webp - jpeg - jpg - png - svg
Default: svg
For example: /placeholder/_.jpg
width=:pixel OR w=:pixel
Set new image width in pixel.
Value: val > 0
Default: 640
For example: /placeholder/width=600
height=:pixel OR h=:pixel
Set new image height in pixel.
Value: val > 0
Default: 480
For example: /placeholder/height=600
color=:hex OR c=:hex
Set image text color.
Default 111827
For example: /placeholder/color=000000
bgcolor=:hex OR b=:hex
Set image background color.
Default f3f4f6
For example: /placeholder/bgcolor=ffffff


