Skip to content

Proxy thumbor API to resize images by categories and alias with docker-compose for supply

Notifications You must be signed in to change notification settings

acostasg/proxy-thumbor-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Thumbor API

Proxy thumbor API to resize images by categories and alias with docker-compose for supply

proxy-thumbor-api
 ├── src
 │   ├── java
 │   │    └── com.proxy.thumborapi
 │   │               ├── config
 │   │               ├── exception
 │   │               ├── model
 │   │               ├── service
 │   │               ├── thumbor
 │   │               ├── web
 │   │               └── ThumborApiApplication.java
 │   └── resources
 │          ├── application.yml #config sizes and categories for default
 │          ├── application-pre.yml #config sizes and categories for pre-production envoriment
 │          ├── application-pro.yml #config sizes and categories for production envoriment
 │          └── aplication-uat.yml #config sizes and categories for uat envoriment
 │   
 ├── test
 │   
 ├── build.gradle  # config to gradle
 ├── docker-compose.yml # file to supply envoriment thumbor oficial engine
 └── README.md

Development

The project uses a docker container as development environment.

Docker pre-requisites

First step add this dns in your /etc/hosts:

127.0.0.1 thumbor_server

second step:

docker-compose up -d

Finally run sprintBoot, sorry not have docker container for run api, not yet :-(:

gradle bootRun

Execute test:

gradle test

or use Gradle projects un your IntellijIDEA: pmp-thumbor-api [bootRun]

Sample and check image

Legacy with prefix /api

http://localhost:8080/api/resize/0x0/sample.jpg

with size:

http://localhost:8080/resize/es/zoom/sample-two.jpg

or webp (chrome only)

http://localhost:8080/resize/es/zoom/sample-two.jpg?webp=true

View list of images, only AWS bucket:

http://localhost:8080/images/list

About

Proxy thumbor API to resize images by categories and alias with docker-compose for supply

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages