- Auto-Generated Image Sizing
- Caching (and Auto-Recache on Original Modification)
- Admin Area
- PNG, JPG, GIF
- Apache (with Rewrite)
- PHP 5.4+
- PHP GD Library
- Change the
ADMIN_PASSWORDinconfig.php - You can upload images manually to the
originalsfolder - GIF animations are not retained after resizing
-
w= width- auto-calculated at ratio if only
his provided
- auto-calculated at ratio if only
-
h= height- auto-calculated at ratio if only
wis provided
- auto-calculated at ratio if only
-
r= resize type- only necessary when both
wandhsupplied f(fit) (default)- fits the entire image into the size
c(crop)- center-crops the image
- only necessary when both
-
b= background- pass hex color (e.g.,
ff23ba) (default is white for jpg, transparent for png)- only applies with fit (
r=f)
- only applies with fit (
- pass hex color (e.g.,
-
debug= debug mode- if is set, will always recache and display text (instead of fallback images) on failure
-
Program attempts to gracefully fail and display an image if possible
-
Displays
assets/default.pngas fallback
-
/__test_landscape.png?w=300- resizes image to 300px wide, keeping the aspect ratio
-
/__test_landscape.png?w=300&h=300- resizes image to 300px wide and 300px tall, fitting the aspect ratio with a white background fill
-
/__test_landscape.png?w=300&h=300&r=f&b=000000- resizes image to 300px wide and 300px tall, fitting the aspect ratio with a black background fill
-
/__test_landscape.png?w=80&h=80&r=c- resizes image to 80px wide and 80px tall, center-cropping the contents



