I am completely new to image processing. I know nothing about what is JPEG internally and how it works.
I wonder, if I can find somewhere piece of ruby code performing following simple operation:
- Open jpeg file.
- Iterate through each pixel and set it's color to fx green.
- Write result to another file.
I am especially interested in how this can be accomplished using ruby-vips library
https://github.com/ender672/ruby-vips
My goal - to learn how to perform basic image processing operations using ruby-vips (gamma correction, brightness, tint, ...)
Any links to working examples more complex than 'hello world'-like one on ruby-vips's github page would be highly appreciated!
If there are alternatives to ruby-vips, I would be thankful for them too.
UPDATE
Much has happened since I asked this question:
- ruby-vips is a gem: http://libvips.blogspot.co.uk/2012/06/ruby-vips-launches.html
- complete rewrite for vips8, now based on ruby-ffi
- Source code repository is here: https://github.com/jcupitt/ruby-vips/
- The examples of usage: https://github.com/jcupitt/ruby-vips/wiki/Examples
- Basic concepts of vips image processing: https://github.com/jcupitt/ruby-vips/wiki/Basic-concepts
- ruby-vips integration into CarrierWave uploader plugin for Ruby on Rails: https://github.com/eltiare/carrierwave-vips
- ruby-vips is one of the official backends for ActiveStorage in rails6