I’m excited

Scaling images questions

I'm thinking of scaling some images and had a few questions about the best way to do that.

1. Should I import the object as the larger image size and scale down, or import the smaller image size and scale up to have the best quality image?

2. Should the ending scaled image size (large or small) also conform to POW2, or is it only the original image size that is imported into Composer that matters?

3. Is there a way to decide if scaling a single image is less/more memory intensive than loading an animation (series of images that show the image scaling)?

Thanks!
- Heidi
1 person has
this question
+1
Reply
  • The size of the image visible in Composer is independent of the size of the original image.

    The iPad will 'unpack' the image into memory based on the original size of the imported image. So you could have an image that looks very small on screen because you have shrunk it down using a pinch or the controls, but it will in fact be using a tremendous amount of memory because the incoming image was very large (e.g. 1024 x 768).

    Basically, the size of the imported image is what counts.

    My advice is to make all imported images work with the POW2 rules and make them only as big as you need them on screen.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Dan (Official Rep) February 09, 2012 05:48
    1.) Best image quality will be when you show it 1:1, followed by scaling down, followed by scaling up.

    2.) The size you "render" the image at can be anysize at all, rendering it larger doesn't use any more or less RAM, its just draws it bigger.

    3.) Yes animation size is 2 x POW2 RAM usage for 1 frame. The image is the POW2 RAM usage. So basically scaling an image will use less RAM, be Smoother and more tweakable as the final sizes and rate can be tweaked in Composer with a couple of numbers not in an animation program, forcing you to connect, import, delete object, re make object to tweak things.

    Golden rule is If I can do it with a behaviour/transform do it, it will be better, smoother and faster and use less RAM.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited