Export Movie : +1 / -1 Pixel Height Width Error
- October 21, 2022
- 1 reply
- 503 views
Hello,
Export Movie has an export bug where all png exports are off by -1px or +1px in either the width or the height, sometimes both. but never the dimensions it's set to with a bounding box in Animate. I export everything with pre-set bounding boxes (ex: 600px x 800px) on a much larger canvas (ex: 3000x3000) with a 0.1px stroke at 10% opacity for each bounding box to preserve the aspect ratio for sprite development. I then remove the transparent pixels in photoshop with a batch trim. After doing this they are always off by 1px in W or H. So the size I choose in Animate CC does not match the export it spits out after removing the transparency. It is not a photoshop bug, it is an animate one.
My guess is that it has something to do with the animate's conversion from pixel decimals and how it rasterizes the vectors of strokes. I was wondering if anyone knows a work around for working with large transparent sprite sheets like this in Animate CC. I feel like i've tried everything;
- Using a bounding box with a 0.1 stroke width
- Changing the position of assets to be placed on whole pixel decimals (1.0, 2.0, not 1.1,2.4, etc.)
- Changing the size of assets to be only in whole pixel decimal dimensions.
- Changing the W and H of the document settings
- Placing the renders in the middle of the document vs up against the sides
- Adjusting my bounding boxes with -1 or +1 border (still spits them out wrong)
The +1/-1 bug is very random and was wondering if anyone else has come across this when exporting sprite sheets.
Thanks for your time
