All Projects → beetlebugorg → Mod_dims

beetlebugorg / Mod_dims

Licence: other
Apache HTTP dynamic image resizing module

Projects that are alternatives of or similar to Mod dims

Libvips
A fast image processing library with low memory needs.
Stars: ✭ 6,094 (+15135%)
Mutual labels:  imagemagick
Hestiacp
Hestia Control Panel | A lightweight and powerful control panel for the modern web.
Stars: ✭ 764 (+1810%)
Mutual labels:  apache2
Sv Images
Image manipulation library with an HTTP based API.
Stars: ✭ 7 (-82.5%)
Mutual labels:  imagemagick
Slop
slop (Select Operation) is an application that queries for a selection from the user and prints the region to stdout.
Stars: ✭ 639 (+1497.5%)
Mutual labels:  imagemagick
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 732 (+1730%)
Mutual labels:  imagemagick
Mockup
Perspective app screens and isometric mock-up tool. Automated high quality, high resolution, marketing art designer for mockups. Written in minimalist Bash using ImageMagick and Love! [Application, Art]
Stars: ✭ 18 (-55%)
Mutual labels:  imagemagick
Rmagick
Ruby bindings for ImageMagick
Stars: ✭ 576 (+1340%)
Mutual labels:  imagemagick
Catimg
🦦 Insanely fast image printing in your terminal
Stars: ✭ 880 (+2100%)
Mutual labels:  imagemagick
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (+1805%)
Mutual labels:  imagemagick
Litecloud
User management system for the server (Home Cloud).
Stars: ✭ 26 (-35%)
Mutual labels:  apache2
Gifify
😻 Convert any video file to an optimized animated GIF.
Stars: ✭ 5,792 (+14380%)
Mutual labels:  imagemagick
Grunt Responsive Images
Produce images at different sizes for responsive websites.
Stars: ✭ 726 (+1715%)
Mutual labels:  imagemagick
Siteshot
Website screenshot capturer written in Go.
Stars: ✭ 18 (-55%)
Mutual labels:  imagemagick
Image processing
High-level image processing wrapper for libvips and ImageMagick/GraphicsMagick
Stars: ✭ 600 (+1400%)
Mutual labels:  imagemagick
Docker Apache Proxy
Apache web server like proxy to Docker
Stars: ✭ 9 (-77.5%)
Mutual labels:  apache2
Imagemagick
🧙‍♂️ ImageMagick 7
Stars: ✭ 6,400 (+15900%)
Mutual labels:  imagemagick
Gifcurry
😎 The open-source, Haskell-built video editor for GIF makers.
Stars: ✭ 830 (+1975%)
Mutual labels:  imagemagick
Pomfe.co V1
Pomfe.co File Hosting Site Source Code
Stars: ✭ 31 (-22.5%)
Mutual labels:  apache2
Apache24 Modules
Modules for Apache 2.4 and maybe 2.2
Stars: ✭ 12 (-70%)
Mutual labels:  apache2
Magento1
Docker Image to Magento 1 local development in Mac, Linux and Windows
Stars: ✭ 24 (-40%)
Mutual labels:  apache2

Dependencies

  • Apache 2.2.x
  • Imagemagick 6.6+
  • libcurl 7.18.0+

Compiling

./autorun.sh --with-imagemagick=/path/to/imagemagick --with-apache=/path/to/apache

The paths provided above are prefix paths used to install those dependencies. If you installed Imagemagick and Apache (including APR) in /usr/local you would run:

./autorun.sh --with-imagemagick=/usr/local --with-apache=/usr/local

Installation

Add the following to the Apache configuration:

<IfModule !mod_dims.c>
    LoadModule dims_module modules/mod_dims.so
</IfModule>

AddHandler dims-local .gif .jpg

<Location /dims/>
    SetHandler dims
</Location>

<Location /dims3/>
    SetHandler dims3
</Location>

<Location /dims-status/>
    SetHandler dims-status
</Location>

This assumes mod_dims.so has been installed in $HTTP_ROOT/modules.

Errors

There are three classes of errors in mod_dims;

  • Errors caused during downloading of a source image. These come directly from libcurl and are logged as-is.

  • Errors caused during an ImageMagick operation. These come directly from ImageMagik and are logged as-is.

  • Errors caused during processing of a request by mod_dims. These fall into the category of bad input checking, bad config, etc.

ImageMagick Timeout Error Format:

[client Imagemagick operation, '', timed out after 4 ms

would be something like "Resize/Image" or "Save/Image".

General Error Format:

Errors will be in the following format in Apache's error log:

[client ] error, '', on request:

For example:

[client 10.181.182.244] Imagemagick error, 'no decode delegate for this image format `'', on request: /20080803WI55426251_WI.jpg/TEST/thumbnail/78x100/

Common libcurl Error Messages:

These message are usually self explanatory so no explain is provided. The URL that failed will be logged along with this message.

  • Couldn't connect to server
  • Couldn't resolve DNS
  • Timeout was reached

Common mod_dims Error Messages:

  • Requested URL has hostname that is not in the whitelist. (aaolcdn.com)
  • Application ID is not valid
  • Parsing thumbnail geometry failed
  • Parsing crop geometry failed
  • Failed to read image This occurs if ImageMagick had trouble reading the image.
  • Unable to stat image file This occurs when a local request is unable to find the image to resize.

Common ImageMagick Error Messages:

  • Memory allocation failed This should rarely occur, if ever, but usually when it does it's the result of an ImageMagick timeout.

  • unrecognized image format

  • no decode delegate for this image format

This happens when ImageMagick doesn't no how to read a source image.

  • zero-length blob not permitted

This may occur if there was a failure to download the source image.

  • Unsupported marker type 0x03 This may occur if the image is corrupted. The "0x03" may be different depending on the corruption.

Other more serious errors:

Any errors that have "Assertion failed" are results of bugs in the code and can be considered serious.

  • Assertion failed: (wand->signature == WandSignature), function MagickGetImageFormat, file wand/magick-image.c, line 4137.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].