quick_magick 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of quick_magick might be problematic. Click here for more details.
- data/README +9 -8
- data/Rakefile +1 -1
- data/lib/quick_magick.rb +2 -2
- data/quick_magick.gemspec +2 -2
- metadata +2 -2
data/README
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
= Quick Magick
|
2
2
|
|
3
3
|
== What is QuickMagick
|
4
|
-
QuickMagick is a gem for easily accessing ImageMagick command line tools from Ruby programs.
|
4
|
+
QuickMagick is a gem built by BadrIT (http://www.badrit.com) for easily accessing ImageMagick command line tools from Ruby programs.
|
5
5
|
|
6
6
|
== When to use QuickMagick
|
7
7
|
QuickMagick is a library that allows you to create and manipulate images.
|
8
8
|
When you are faced with a problem that requires high quality manipulation of images you can use QuickMagick.
|
9
|
-
|
10
|
-
*
|
11
|
-
* Generate captchas
|
12
|
-
* Generate graphical reports and charts
|
13
|
-
* Convert uploaded images
|
9
|
+
Use QuickMagick to:
|
10
|
+
* Check uploaded images dimensions.
|
11
|
+
* Generate captchas.
|
12
|
+
* Generate graphical reports and charts.
|
13
|
+
* Convert uploaded images formats.
|
14
|
+
* Display pdfs as images.
|
14
15
|
|
15
16
|
== Features
|
16
17
|
* Open an existing image from disk and determine basic info like width, height.
|
@@ -43,7 +44,7 @@ Another issue is that Flex can only open .jpg, .png and .gif files.
|
|
43
44
|
The solution was to convert all images uploaded to one of these formats and resizing them down to at most 8192x8192.
|
44
45
|
|
45
46
|
First, I used ImageMagick as a command line tool and was calling it using system calls.
|
46
|
-
This accomplished the work perfectly
|
47
|
+
This accomplished the work perfectly but my source code was a rubbish.
|
47
48
|
It has many lines of code to handle creating temporary files and accessing multipage tiff and pdf files.
|
48
49
|
I found RMagick at that time and decided to use it.
|
49
50
|
It caused the code to be much simple without affecting performance notably.
|
@@ -179,4 +180,4 @@ For more information on drawing API visit:
|
|
179
180
|
http://www.imagemagick.org/Usage/draw/
|
180
181
|
|
181
182
|
Check all command line options of ImageMagick at:
|
182
|
-
http://www.imagemagick.org/script/convert.php
|
183
|
+
http://www.imagemagick.org/script/convert.php
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('quick_magick', '0.5.
|
5
|
+
Echoe.new('quick_magick', '0.5.4') do |p|
|
6
6
|
p.description = "QuickMagick allows you to access ImageMagick command line functions using Ruby interface."
|
7
7
|
p.url = "http://quickmagick.rubyforge.org/"
|
8
8
|
p.author = "Ahmed ElDawy"
|
data/lib/quick_magick.rb
CHANGED
@@ -49,7 +49,7 @@ module QuickMagick
|
|
49
49
|
RadialGradient = "radial-gradient"
|
50
50
|
|
51
51
|
# Different possible patterns
|
52
|
-
Patterns = %w{bricks
|
52
|
+
Patterns = %w{bricks checkerboard circles crosshatch crosshatch30 crosshatch45 fishscales} +
|
53
53
|
(0..20).collect {|level| "gray#{level}" } +
|
54
54
|
%w{hexagons horizontal horizontalsaw hs_bdiagonal hs_cross hs_diagcross hs_fdiagonal hs_horizontal
|
55
55
|
hs_vertical left30 left45 leftshingle octagons right30 right45 rightshingle smallfishscales
|
@@ -173,4 +173,4 @@ unless "".respond_to? :end_with?
|
|
173
173
|
end
|
174
174
|
|
175
175
|
require 'quick_magick/image'
|
176
|
-
require 'quick_magick/image_list'
|
176
|
+
require 'quick_magick/image_list'
|
data/quick_magick.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{quick_magick}
|
5
|
-
s.version = "0.5.
|
5
|
+
s.version = "0.5.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ahmed ElDawy"]
|
9
|
-
s.date = %q{2009-08-
|
9
|
+
s.date = %q{2009-08-26}
|
10
10
|
s.description = %q{QuickMagick allows you to access ImageMagick command line functions using Ruby interface.}
|
11
11
|
s.email = %q{ahmed.eldawy@badrit.com}
|
12
12
|
s.extra_rdoc_files = ["README", "lib/quick_magick/image.rb", "lib/quick_magick/image_list.rb", "lib/quick_magick.rb"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quick_magick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ahmed ElDawy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-26 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|