-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy paththumbnail-plus.cabal
91 lines (81 loc) · 2.53 KB
/
thumbnail-plus.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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 <[email protected]>
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