name: thumbnail-plus
version: 1.0.1
synopsis: Generate thumbnails easily and safely.
homepage: https://github.com/prowdsponsor/thumbnail-plus
license: MIT
license-file: LICENSE
author: Felipe Lessa, Michael Snoyman
maintainer: Felipe Lessa <felipe.lessa@gmail.com>
copyright: (c) 2014 Prowdsponsor
category: Graphics
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
description:
This package provides every tool you need to easily and safely
generate thumbnails for JPG, GIF and PNG images.
.
By safely, we mean that this package should be able to handle
images uploaded to a public web server without any known
vulnerabilities:
.
* File sizes are constrained and checked.
.
* Image sizes are constrained and checked before the images
are loaded into memory. Uses code from the deprecated
@imagesize-conduit@ by Michael Snoyman.
.
* Optionally, the original image is reencoded before being
saved.
.
* The images are processed using the <http://libgd.bitbucket.org/ GD library>,
which is heavily battle-tested and
<http://www.cvedetails.com/vulnerability-list/vendor_id-2678/Gd-Graphics-Library.html audited by many pairs of eyeballs>.
.
Please report any vulnerabilities you may find, we take strive
to make this library suitable for processing arbitrary images.
source-repository head
type: git
location: git://github.com/prowdsponsor/thumbnail-plus.git
library
exposed-modules:
Graphics.ThumbnailPlus
Graphics.ThumbnailPlus.ImageSize
build-depends:
base >= 4.6 && < 5,
bytestring >= 0.10,
data-default >= 0.5,
transformers >= 0.3,
either >= 4.1,
conduit >= 1.0,
resourcet >= 0.4,
directory,
temporary >= 1.2,
gd >= 3000.7.3
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
test-suite runtests
type: exitcode-stdio-1.0
build-depends:
base,
data-default,
transformers,
conduit,
resourcet,
directory,
thumbnail-plus,
hspec >= 1.9
main-is: Main.hs
hs-source-dirs: tests
default-language: Haskell2010
ghc-options: -Wall