Fork me on GitHub
Note: iGARET.com is getting completely redone. There may be things broken on the site for the next few days.

MultiRezer for Corona!

Are you a Corona user? If you’re a developer and want your applications to support both the iPhone 3G resolution (320×480) and also the iPhone 4 (640×960), don’t want high file sizes, don’t want to waste memory by downscaling on the phone, then MultiRezer is for you!

Using MultiRezer is as simple as 1 – 2 – 3!

  1. Create all your graphics in double the resolution of the 3G (if you want to create a background create it at 640×960) and name the file yourfilename@2x.png (you MUST include the @2x, it can also be any file extension, PNG is recommended though)
  2. Create (or edit) your config.lua file and include the following
    application =
    {
    	content =
    	{
    		width = 320,
    		height = 480,
    		scale = "zoomEven",
    
    		imageSuffix =
    		{
    			["@2x"] = 2,
    		},
    
    	},
    }
  3. Now just drag and drop your double resolution images (you can drop as many as you’d like at a time) onto the application’s icon and watch the magic begin!

It’ll downscale the images and rename them to exclude @2x. Now once you load your game on an iPhone 4 you’ll get high res graphics, and if you load it on the 3G you’ll get small graphics at no expense to the CPU! Sure, you can do the same thing in Photoshop, but the reason I created this utility was to save time, and it’s saved a LOT of time!

Some additional notes:

  • When loading images in Corona instead of using display.newImage() you’re going to use display.newImageRect() instead.
  • When created your imageRect make sure to set the width/height to the small graphics width/height (so if the @2x file is 20×20 you’re going to create the imageRect as 10×10)
  • ALWAYS create your graphics as an even number, odd numbers can’t get cut in half, and graphics can’t have half pixels!

If you have any questions, would like to request a feature, or just let me know how awesome it is; just leave a comment below!

Enjoy using MultiRezer!

NOTE: Download link for the beta MultiRezer has been removed! Download MultiRezer 1.0 from here.

Related Posts

This post is tagged: , , , , , , , , , , , , , , ,


  • http://www.awana.org Greg

    Like or Dislike: Thumb up 0 Thumb down 0

    It’d be awesome if you could tell the program what percentage you’d like it to be scaled at. For instance, this only scales it by 50%. But I’m working with graphics for both iPhone, iPod, iPad and Android and sometimes have found a good working document that actually needs to be divided by 2.3, not 2. That would be cool.

    But if I just needed graphics done divided by 2, than this is the way to go.

    • http://igaret.com Garet

      Like or Dislike: Thumb up 0 Thumb down 0

      I’ll keep that in mind for a future release :)

  • jweave

    Like or Dislike: Thumb up 0 Thumb down 0

    I can’t seem to get this script to do what it’s supposed to do. I unzip it, and drag my image to the icon and it briefly pops into my dock and then immediately disappears. I’m left with no duplicate/smaller image. Just the original. Spotlight search reveals nothing but original image. Any advice? It would be a great tool. I’m running the latest snow leopard.

    • http://igaret.com Garet

      Like or Dislike: Thumb up 0 Thumb down 0

      Hmm… does the file name have an @2x at the end before the extension (ie: myimage@2x.png), if not it’ll override the original image!

      • jweave

        Like or Dislike: Thumb up 0 Thumb down 0

        yes. it indeed does. not sure what it is doing. Like I said, the icon pops up as if it’s doing something in the doc but nothing really happens.

  • yehkemon

    Like or Dislike: Thumb up 0 Thumb down 0

    If the input PNG is taller than it is wide, then MultiRezer resizes it incorrectly! It will halve the width of the @2x image and make that the height of the smaller image, resulting in a much smaller image.

    eg. 200×300 —> 67 x 100

    • http://www.blueglutton.com BlueGlutton

      Like or Dislike: Thumb up 0 Thumb down 0

      Ok, that’ why my 620×960 graphics become 213×320.

      Bruno from BlueGlutton

      • http://www.blueglutton.com BlueGlutton

        Like or Dislike: Thumb up 0 Thumb down 0

        I meant “Ok, that’s why my 640×960 graphics become 213×320.”

        Bruno from BlueGlutton

    • http://igaret.com Garet

      Like or Dislike: Thumb up 0 Thumb down 0

      Thanks for the heads up! I’ll add a fix to it in the next few days. I’m releasing an update aswell.

  • yehkemon

    Like or Dislike: Thumb up 0 Thumb down 0

    Any progress on the update?

    • http://www.igaret.com Garet

      Like or Dislike: Thumb up 0 Thumb down 0

      Sorry about that. Update will be up this thursday! I’ve been busy working on a few projects like my StairGen and tomorrow’s Tutorial Tuesday!

    • http://www.igaret.com Garet

      Like or Dislike: Thumb up 0 Thumb down 0

      Update was released! You can download it here: http://igaret.com/development/multirezer-1-0-released

  • Pingback: Corona SDK Ecosystem « TechLedger

  • Pingback: Step 1: organizing the tools » Tennisbot 3k Development Blog

  • ckausik

    Like or Dislike: Thumb up 1 Thumb down 0

    Not working in OS X Lion. :(

    • http://www.igaret.com Garet

      Like or Dislike: Thumb up 1 Thumb down 0

      Never fear! MultiRezer for 10.7+ with an actual GUI and a few other sweet features is coming to the Mac App Store soon! It’s under review now ;)

  • http://www.freeiphone2u.com iphone 4 price

    Like or Dislike: Thumb up 0 Thumb down 0

    I hope other users find your post here as helpful as I have. I run a website myself and would be more than happy for you or the guests on your site to check out. Please go ahead and look through my website just like I have with yours and leave a remark or two if you discover anything interesting. Many thanks

  • http://www.autoloansspot.com auto loans

    Like or Dislike: Thumb up 0 Thumb down 0

    Yes, I agree with your point about the social media where you said that we need to used social bookmarking to Bookmark or Twitter interesting stories or blog posts and link back to those pages.

    • http://www.jakpoderwacdziewczynex.pl/ jak poderwac

      Like or Dislike: Thumb up 0 Thumb down 0

      Socia media is becoming bigger and bigger and we need to use it more. Social bookmarking is very important nowdays

  • http://dl-hdmusicvideo.com HD Music Video

    Like or Dislike: Thumb up 1 Thumb down 1

    This is a topic of my interest. I love reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging effort

  • http://www.insurance90.com car insurance

    Like or Dislike: Thumb up 0 Thumb down 1

    This is a really good read for me.. Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article on your pretty good speech.
    car insurance

  • http://www.ladyinfo.com/horoscope-2012/ horoscopes

    Like or Dislike: Thumb up 0 Thumb down 1

    Wonderful posts are display in this blog that to sharing the nice services in this blog. I am really admired for using the nice services in this blog that to utilize the amazing info in this blog
    horoscopes

  • https://www.paydayloans90.co.uk payday loans

    Like or Dislike: Thumb up 0 Thumb down 1

    Please keep them coming. Greets !This is a in fact good read for me, Must admit that you are human being of the best bloggers I ever saw. Thanks for posting this informative article.payday loans

  • http://www.currency-converter-calculator.com currency converter

    Like or Dislike: Thumb up 0 Thumb down 0

    I’m at work surfing around your blog from my new discount louboutin! Just wanted to say I love reading through your blog and look forward to all your discount louboutin ! Keep up the superb work!

  • http://www.youtubedownload.com/ youtube download

    Like or Dislike: Thumb up 0 Thumb down 0

    This app is very good, thanks for the review. There are a couple of companion apps that will help you get the more out iMovie
    youtube download

  • http://www.cheapovaninsurance.co.uk/ Van Insurance

    Like or Dislike: Thumb up 0 Thumb down 0

    Thanks for sharing the information. I found the information very helpful. That’s a awesome article you posted. I will come back to read some moreVan Insurance

  • http://www.cash-in-1-hour.com.au/payday_loans_online.aspx payday loans australia

    Like or Dislike: Thumb up 0 Thumb down 0

    Corona is really so good. I like Corona; however I have not used it earlier. but after reading details about Corona, I found that it’s really good.

  • http://www.ufxbank.com/tutorial.aspx Trade Forex

    Like or Dislike: Thumb up 0 Thumb down 0

    Wow!! This is a nice blog and i am very impressed with your blog content. You have shared a nice information with us. I appreciate your work.

  • http://www.paydaybank.co.uk/news Payday Bank

    Like or Dislike: Thumb up 0 Thumb down 0

    Corona is an image input/output library that can read, write, and manipulate image files in just a few lines of code. Corona is designed to be easy to use, and exports a straightforward C++ API. With just a few lines of C++, you can add image loading to your application.

  • http://www.carloansgalore.com car loans for bad credit

    Like or Dislike: Thumb up 0 Thumb down 0

    Your observations are right on, I agree with most of what you say.Thanks so much for your comment. Thanks
    car loans for bad credit

  • http://music-bb.org HD Music Videos

    Like or Dislike: Thumb up 0 Thumb down 0

    I wanted to leave a little comment to support you and wish you a good continuation. Download Music Videos

  • http://www.ufxbank.com/ Trade Forex

    Like or Dislike: Thumb up 0 Thumb down 0

    Thanks for sharing this information with people. This article is very interesting. I like to read this information.

  • http://www.whichpayday.co.uk/payday_loans/paydaybank.html Payday Bank

    Like or Dislike: Thumb up 0 Thumb down 0

    Garet decided to go crazy and release a plethora of discount codes for MultiRezer, TexturePacker, and a bunch of other Corona plug-ins.

  • http://www.getaniphone5free.com/ Amish

    Like or Dislike: Thumb up 0 Thumb down 0

    Your article makes me think :

    Get a free iphone 5

  • feedsSubWef

    Like or Dislike: Thumb up 0 Thumb down 0

    The simplest method to download youtube and other videos is the following service:

    video download

  • http://jakpoderwac.pl/dziewczyne Podrywanie dziewczyn

    Like or Dislike: Thumb up 0 Thumb down 0

    Great, we will use it on our others sites. Thank U :)

  • http://www.molivagreyaway.net Moliva

    Like or Dislike: Thumb up 0 Thumb down 0

    Great, we will use it on our others sites. Thank U

  • http://www.forfait-mobile.info/ Comparatif forfait mobile

    Like or Dislike: Thumb up 0 Thumb down 0

    Good sharing. Thanks