Permalink
Commits on Jan 29, 2012
  1. Merge jcupitt/ruby-vips

    Conflicts:
    	ext/extconf.rb
    committed Jan 29, 2012
Commits on Nov 4, 2011
  1. @jcupitt

    update for 7.27

    now works with libvips git head
    jcupitt committed Nov 4, 2011
Commits on Oct 18, 2011
  1. @jcupitt

    add image metadata get/set methods

    Add image methods to get and set image metadata as strings. For example:
    
    im = Image.new('/home/john/pics/theo.jpg')
    im.set('exif-Orientation','Bottom-right')
    
    This is q quick hack and not really useful for non-string-valued
    metadata.
    jcupitt committed Oct 18, 2011
Commits on Oct 11, 2011
  1. @jcupitt

    get ruby-vips working with 7.26

    now works with 7.26.4 and later
    jcupitt committed Oct 11, 2011
Commits on Sep 7, 2011
  1. Add 7.26 and update readme

    committed Sep 7, 2011
Commits on May 9, 2011
  1. @catwell

    Build with VIPS 7.24

    catwell committed May 9, 2011
Commits on Aug 26, 2010
  1. @ender672
  2. @ender672

    Fix Boolean documentation, refactor some methods.

    Makes a correction to the documentation for all boolean methods.
    
    Refactors methods in image_arithmetic.c and image_boolean.c that can accept a variety of arguments.
    
    Adds Image#and, Image#or, Image#xor and aliases for them, &, |, ^
    ender672 committed Aug 26, 2010
  3. @ender672

    Fix to README.md

    ender672 committed Aug 26, 2010
  4. @ender672
  5. @ender672

    TODO updates.

    ender672 committed Aug 26, 2010
  6. @ender672

    Create aliases for Image arithmetic operations

    This creates aliases such as Image#+ which is an alias for Image#add.
    
    This adds the following instance methods for image: +,-,/,*,**,%
    ender672 committed Aug 26, 2010
  7. @ender672

    Image.new is now handled in ruby code by readers.

    The Image initializer method implemented in the C extension is no longer needed. Removing.
    ender672 committed Aug 26, 2010
Commits on Aug 25, 2010
  1. @ender672

    Documentation fixes.

    Mostly fixes to markup in documentation.
    ender672 committed Aug 25, 2010
  2. @ender672

    Properly pass argv[0] to VIPS.

    ruby's ARGV is different than the C argv in that it doesn't include argv[0].
    ender672 committed Aug 25, 2010
  3. @ender672

    Properly pass argv[0] to VIPS.

    ruby's ARGV is different than the C argv in that it doesn't include argv[0].
    ender672 committed Aug 25, 2010
Commits on Aug 24, 2010
  1. @ender672

    Adds VIPS.debug_info . VIPS commandline option parsing.

    VIPS.debug_info prints memory allocation information to stdout. This is useful when looking for memory leaks.
    
    Added support for default VIPS command line options.
    ender672 committed Aug 24, 2010
  2. @ender672

    Downgrade to RSpec1 so that you don't need to install a prerelease RSpec

    Should be okay to use RSpec2 once the final is out.
    ender672 committed Aug 24, 2010
  3. @ender672

    Fix a memory leak when writing images in native Vips format

    We were creating VipsImage Object but it was not being closed after write.
    ender672 committed Aug 24, 2010
Commits on Aug 18, 2010
  1. @ender672
  2. @ender672
  3. @ender672

    Adds rdoc documentation and minor API cleanups.

    Transcribed glib documentation and man pages from the original vips sources. In the process, had to jump through some hoops to get rdoc to properly recognize classes and methods. Rdoc2 still doesn't like it, but I prefer the appearance of rdoc 1 anyways.
    ender672 committed Aug 18, 2010
Commits on Aug 13, 2010
  1. @ender672

    Fix up PNG memory writing specs

    These specs currently only run when compiling against the trunk version of libvips. Fixed up some specs that still had dummy values.
    ender672 committed Aug 13, 2010
  2. @ender672

    API simplifications and make masks easier to work with.

    Lots of small API cleanups after auditing all methods. For example, instead of Image#shrink(3, 3) you can now call Image#shrink(3).
    
    Integer masks and double masks are now interchangable, as long as the matrix has all-integer coefficients. Also, all methods that accept masks now can optionally accept a ruby array.
    ender672 committed Aug 13, 2010
Commits on Aug 12, 2010
  1. @ender672

    Fix a copy/paste error.

    ender672 committed Aug 12, 2010
  2. @ender672

    Add generic reader and writer classes, add Reader#recognized?

    The generic reader & writer methods are accessible through Image#new, Image#write. libvips has heuristics to figure out which format the file will be read or written in.
    
    Reader#recognized? works for most Reader subclasses. It checks file signatures to quickly see if a file is of a given format. I.e.
    
    JPEGReader.recognized?("/path/to/img.jpg") # => true / false
    ender672 committed Aug 12, 2010
  3. @ender672

    Updated README

    ender672 committed Aug 12, 2010
Commits on Aug 11, 2010
  1. @ender672

    Create new reader API and refactor writer api.

    Readers are now broken into separate classes for each image type. All reader inherit from VIPS::Reader. All header methods have been moved into a module which is now included by VIPS::Reader, VIPS::Image and VIPS::Writer.
    ender672 committed Aug 11, 2010
Commits on Aug 8, 2010
  1. @ender672
  2. @ender672

    Remove header methods from Image class, move image writing methods in…

    …to subclasses of the Writer class.
    
    The new writer classes make it easier to set format writing options. Before, options were coded into
    the write path, i.e. via:
    
    im.to_jpeg("myjpeg.jpg:66") #  save the image as a jpeg with compression level 66
    
    With the new writer classes, this can be done via:
    
    jpeg = im.to_jpeg
    jpeg.compression = 66
    jpeg.write("myjpeg.jpg")
    
    A shortcut is to pass an option hash to Image#to_jpeg:
    
    im.to_jpeg(:compression => 66).write("myjpeg.jpg")
    
    Header methods have been moved out of the Image class and into the writer classes.
    ender672 committed Aug 8, 2010
Commits on Aug 5, 2010
  1. @ender672

    Initial commit

    ender672 committed Aug 5, 2010