I create a graphic in CorelDraw X7. I export it to a PNG. In the export parameters I select a width of 324 pixels. The resulting image is 323 pixels. How can I tell it that I want exactly 384 pixels?
I was frustrated with similar problems many years ago (Corel Draw 4), but the problem was solved long ago. Specifically, I don't have this problem in version X3.
Thanks
David Dubois said:I create a graphic in CorelDraw X7. I export it to a PNG. In the export parameters I select a width of 324 pixels. The resulting image is 323 pixels. How can I tell it that I want exactly 384 pixels?
1) Select the graphic. Type Ctrl+E to get to Export menu
2) Give a name and location to your PNG bitmap (make sure that it will be saved as a PNG), then click "Export."
3) In the resulting dialog box, if you want a custom size to your exported bitmap, uncheck the "Maintain aspect ratio" and "Maintain size" boxes" (one of which happens to be checked in my attached screen capture. Sorry!)
4) Choose pixels as the units and the desired resolution for the exported bitmap *before* you select the specific pixel size you desire.
5) Click OK.
Hope this helps.
Try selecting the object and turn on Object > Object Hinting.
Thanks for the suggestion, Harry, but it made no difference.
Does the object have an outline or not?
Yes, it has an outline. It consists of group of colored closed curves.
Sorry, I misunderstood your question. The curves have no outline defined. There is a fill but no "pen".
I couldn't show you the project that originally led to the problem, but I've been able to reproduce the problem with a simple graphic.
Just create a rectangle, 156.52 mm x 40.756 mm. Set a fill color, and turn off any outline.
Follow any of the instructions given above, and you'll get the same result. A request for 324 pixels results in a width of 323 pixels.
Doing the math, The width should be 150.876mm to be able to get a width of 324pixels at 300dpi respectively. 156.52mm will never result in an integer value for pixels, The decimal values are being rounded off to the closest, hence the persistent 323 pixel result.
I get the same result as you do.
It seems to be that the height value is what rules the width value. So if the height is a different percentage than the width, then the width will become the same percentage value as the height.
In this case, your test rectangle when the export is set to 324 pixels results in an 18% / 17% distortion (width / height respectively). I am using X6. The point being that the 18% becomes 17% (the scale percentage of the height).
I probably have never noticed this in the past because when I have done UI work, I design in whole pixels. Same when designing people's web assets (banners and the like). I would never think of designing in mm, inches or Bob's when I need pixel perfect exports.
Mike