2

We want to combine several PNG and JPG images into one JPG image/sprite and also write metadata of five fields (i.e., name, personal URL, icon URL, bio, title) to the sprite.

The metadata will only get read by our iOS app, so we can use fields for any purpose (e.g., instead of writing copyright data, we could use the copyright field for storing the personal URL).

Some other StackOverflow posts like this tackle writing metadata in iOS, but we need to write metadata while combining images into one JPG.

Is this possible on iOS? How about Rails? Any gotchas to watch out for?

Community
  • 1
  • 1
Crashalot
  • 33,605
  • 61
  • 269
  • 439

1 Answers1

1

In Rails you could use Image Magick (http://www.imagemagick.org/), via the RMagick gem. Note you'll need to install ImageMagick on the host system, which may be non-trivial, but it has the capabilities you're looking for.