Rails Image Functions
What (summary)
Make sure we can manipulate and resize images from within Ruby code.
Why this is important
We need images (especially logos) to work from within our next-generation code.
DoneDone
- We can arbitrarily resize images from within Rails.
- Logos on profiles are displayed this way
- We determine how Mediawiki has been resizing logos on domain pages and apply the same rules to the profiles so to not needlessly resize images.
Steps to get to DoneDone
- Determine the ease and feasibility of the following options--choose one:
- Use ImageMagick/RMagick or similar code to reimplement Mediawiki's functionality.
- Use web service API to expose Mediawiki's image functionality to Rails code.
- Verify functionality by hand
- How easy is it to test? Do some investigation.
Discussion
Since we just want to do simple resize, it will be nice to explore ImageScience library. RMagick has some well-documented memory issues that we don't want to be hassled with.
Look at this to form an initial overview: RMagick, Mini-Magick and ImageScience Discussion