Rails Image Functions
OurWork < DevelopmentTeam < Priorities < Rails Image Functions
What (summary) edit
Why this is important edit
DoneDone edit
Steps to get to DoneDone edit
Discussion edit
What (summary) edit
Make sure we can manipulate and resize images from within Ruby code.
Why this is important edit
We need images (especially logos) to work from within our next-generation code.
DoneDone edit
- 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 edit
- 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 edit
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
