Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

jinageresizer (Jin's image resizer) Deploy


Build Status Coverage Status Gitter

jinageresizer is a image resizing service using flask, imagemagick and wand inspired by firesize

Current url Scheme

base_url/image_url/?rwidth=resize_width_in_px&rheight=resize_height&type=jpg|png Example: https://images.jinpark.net/http://i.imgur.com/AMTTUDK.jpg/?rwidth=300&type=png

Only the image_url is required. The query params are all optional.

If width and height are given, aspect ratio is not preserved. If only width or height is given, aspect ratio is preserved and the non specified variable is modified to fit the aspect ratio.

I highly suggest putting this behind a cdn to allow for edge caching so the server is not reprocessing the same image again and again. If you are using cloudflare, as I am, you might need to force cloudflare to cache everything using page rules, since the resulting url is usually not one of the automatic cached extensions.

TO DO

  • Add cropping (with gravity)

About

Image resizing flask server using imagemagick

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.