Png files that work in sticker packs?

I'm working on two sticker packs and have two sets of png files ready for each iMessage app.


Both sets of png files are 618 x 618 with transparency and each image is under 500k.


One set of images works perfectly - I'm submitting the app through iTunes Connect.


The other set of images doesn't work, using the exact same project but just changing out the png files:

  • Tapping on an image does not add it to the message compose box for sending
  • Peeling an image and sticking it to an existing message - the sticker disappears after the animation of the sticker being applied
  • After peeling one image, peeling no longer works on any other image


I tried taking the working project, and only replacing one or two of the png files in it:

  • I can tap any of the images to have them appear in the message compose box, except the two that I replaced from the other set
  • I can peel and stick any of the images and they will send, but not the two I replaced
  • After peeling either of the two replacement images, I can no longer tap or peel any of the stickers including the ones that did work until I close out and restart the iMessage app


It is clearly an issue with the png files themselves... does anybody have any idea based on the behavior I've described what could be the cause of this?


Thanks so much in advance!

>replacing one or two of the png files in it:

>does anybody have any idea based on the behavior I've described what could be the cause of this?




Depends - can you describe the process that 'replacing' involved? Swap in the Finder, delete and add, name juggling in Xcode/Resources, clean build folder...?

Resizing the files to be a little smaller has restored their functionality even though they were already under 500k to begin with. I resized the image which resulted in a smaller image file size.


Now to test how much smaller made the difference by making a few different resizing attempts...

In case this is at all helpful, and for my own sanity...


Out of 44 pngs, 11 were working:

  • Biggest file that worked: 422 kb
  • Smallest file that didn't work: 356 kb


(kb file sizes)

Worked: 281, 315, 327, 331, 334, 361, 373, 391, 412, 414, 422

Didn't work: 356, 357, 380, 396, 405, 406, 408, 410, 411, 414, 416, 421, 422, 425, 426, 427, 428, 438, 439, 442, 446, 456, 459, 460, 468, 477, 479, 482, 483, 496


Steps to get every image working:

  1. Sized the 33 non working images to 90% their size (still maintaining the 618 x 618 image size, now more of the space filled by transparency)
  2. Resaved the png files, which actually led some of them to then have larger file sizes
  3. 26 of these images now worked with MSStickerView functionality. 7 images still did not work (3 of the 7 were now over 500k)
  4. Sized these 7 non working images to 90% their size once more. 6 of the images now worked. 1 image (now 454k) still did not work
  5. Sized last image to 90% its size. Now 374k and it works.

This last image is now (3 x 90%) = 73% its original size but still larger (454k) than several of the file sizes that didn't work initially.

Png files that work in sticker packs?
 
 
Q