Difference between revisions of "Rails Image Functions"
(→) |
(→/* Discussion: */) |
||
|
(One intermediate revision by one other user not shown) | |||
| Line 14: | Line 14: | ||
== Steps to get to [[DoneDone]] == | == Steps to get to [[DoneDone]] == | ||
| − | * Determine the ease and feasibility of the following options: | + | * Determine the ease and feasibility of the following options--choose one: |
** Use ImageMagick/RMagick or similar code to reimplement Mediawiki's functionality. | ** Use ImageMagick/RMagick or similar code to reimplement Mediawiki's functionality. | ||
** Use web service API to expose Mediawiki's image functionality to Rails code. | ** 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 == | == Discussion == | ||
| + | Since we just want to do simple resize, it will be nice to explore [http://seattlerb.rubyforge.org/ImageScience.html 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: | ||
| + | [http://www.ruby-forum.com/topic/109102 RMagick, Mini-Magick and ImageScience Discussion] | ||
[[Category:OpenTask]] | [[Category:OpenTask]] | ||
[[Category:DevelopmentTeam]] | [[Category:DevelopmentTeam]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:53, 23 May 2008
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

