Expression Design: Problems with exporting slices, wrong image sizes.


These little things can drive you nuts… I found a great blog post that makes it trivial to [re]generate the multiple images required for a Windows Phone Marketplace submission. For some reason, it was pulled (maybe due to the bug I’m about to describe), but here it is from the Bing cache:

Creating Windows Phone 7 Application and Marketplace Icons

Anyway, I was using this technique to create a simple image export operation for my Windows Phone marketplace application, but every time I would export the slices, some of the images would come out the wrong size – about 1px off. It’s critical that the images be precisely sized, or the app will be rejected – so this whole thing was useless and misleading.

After a bunch of searching, I found the fix:

  1. Go to the options page (CTRL-K, or Edit–>Options)
  2. In the “General” tab, change “Rectangle antialiasing” from “Crisp” to “Smooth”:

image

image

 


Comments (4)

  1. GMaughan says:

    Didn't work for me. I have the exact same problem, some of my slice exports are one pixel larger than they should be. I tried your suggestion and the results are better but some of the slices are still out by one. Did you do anything else? Did you have to redefine your slices or resnap objects to the grid? What Grid size are you using?

  2. AviP says:

    Sorry for the slow response; I was on a very long vacation.

    No, I didn't have to do anything like that. Not sure what else to try – are you still having the problem? If so, I'll chase up members of the Blend team.

  3. Alessandro says:

    oops, seems like after changing Rectangle anti-aliasing to smooth the first time, the change didn't take effect. I happened to go back in the general tab again and it was still on crisp. Not sure If I had imagined setting this option the first time 😛

    Anyway, I set to smooth again* and it seems to work well now.

    Thanks Avip!

  4. Pavlo Lissov says:

    Many, many, many thanks!

    You are right, this "feature" can drive nuts.