packages feed

thumbnail-plus-1.0.5: thumbnail-plus.cabal

name:                thumbnail-plus
version:             1.0.5
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 @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.

extra-source-files:
  README.md
  tests/data/jpn_art.jpg
  tests/data/logo.gif
  tests/data/logo.jpg
  tests/data/logo.png

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.1,
    conduit-extra     >= 1.1,
    resourcet         >= 0.4,
    imagesize-conduit >= 1.0.0.3,

    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,
    conduit-extra,
    resourcet,
    directory,

    thumbnail-plus,
    hspec           >= 1.9
  main-is:             Main.hs
  hs-source-dirs:      tests
  default-language:    Haskell2010
  ghc-options:         -Wall