-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solid fill class #105
Open
VorontsovIE
wants to merge
78
commits into
rmagick-temp:master
Choose a base branch
from
VorontsovIE:solid_fill
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
solid fill class #105
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compile with rake-compiler. Make rake-compiler easily installable by `bundle install`. Ignore all build artifacts (.gitignore from Bundler template).
Fixes test failures of the type: Magick::ImageMagickError: unable to open image `../doc/ex/images/Button_0.gif': @ error/blob.c/OpenBlob/2587
It was expected to be there as of 962d56c in Feb 2013 Yet was never commit as far as I can tell. I haven't found what that image might have been, so I grabbed an image with ICC version 2 and ICC version 4 profiles from http://www.color.org/version4html.xalter and confirmed the code works as expected Magick::Image.read("./doc/ex/images/image_with_profile.jpg").first.color_profile returns a string of characters. (Otherwise it would return nil)
Improve the installation instructions somewhat and organize the text a bit better.
Tidy up the README
I took the "correct" value right from the RSpec output on Travis CI: test_limit_resources(Magick_UT) [/home/travis/build/gemhome/rmagick/test/Magick.rb:268]: <782635008> expected but was <3221225472>. In fact, this value is machine and OS-dependent. ImageMagick 6.8.9 (r15243) has the following definition: magick/resource.c:111: MagickULLConstant(1536)*1024*1024, /* memory limit */ magick/magick-type.h:36: # define MagickULLConstant(c) (MagickSizeType) (c ## ULL) magick/magick-type.h:151: typedef unsigned long long MagickSizeType; When building on Windows, other definitions take place. So, I think the initial value should not be in the test at all. But let it be there for now, to test that the Ruby library correctly gets the value from the C extension that correctly gets it from ImageMagick that is running on Travis machines.
Do not test machine and OS-specific integers
Fixed: build error on Windows Ruby x64 (with ImageMagick 6.8.0-10 or Ima...
Fix pixel hash test
Fixed: test_rendering_intent(Image_Attributes_UT) in Image_attributes.rb fails rmagick-temp#79
Fixed: test_gamma(Image_Attributes_UT) in Image_attributes.rb fails rmagick-temp#77
Fixed: test_number_colors(Image_Attributes_UT) in Image_attributes.rb fails rmagick-temp#78
Fixed: test_total_colors(Image_Attributes_UT) in Image_attributes.rb fails rmagick-temp#80
Fixed: build error with ImageMagick 6.8.9 (when deprecated functions are excluded)
…ven-patch-12 Conflicts: ext/RMagick/rmimage.c
Fixed: test_each_profile(Image2_UT) in Image2.rb fails rmagick-temp#73
Fixed: test_from_blob(ImageList2_UT) in ImageList2.rb fails (on Windows)
Fixed: crash trying to 'test_monitor' on Windows(x64)
Fixed: crash trying to 'test_write' on Windows (Image3.rb, ImageList2.rb)
Fixed: test_from_hsla(Pixel_UT) in Pixel.rb fails rmagick-temp#87
Allow MagickCore6 from Magick-config
Quotes for correct path of font file
…und. It allows one to write image constructors in a consistent syntax for both gradient/hatched and for solid backgrounds instead of two completely different syntaxes: Image.new(size_x, size_y, HatchFill.new('white', 'red')) Image.new(size_x, size_y, SolidFill.new('bisque')) vs Image.new(size_x,size_y, HatchFill.new('white','red')) Image.new(size_x,size_y){ self.background_color = 'bisque' }
VorontsovIE
force-pushed
the
solid_fill
branch
from
September 15, 2014 01:15
51d1555
to
7a84e91
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New class SolidFill in order to fill image with monochromatic background. It allows one to write image constructors consistenly:
syntax for both gradient/hatched and for solid backgrounds instead of two completely different syntaxes