Had this problem forever, only the project I am currently working on, its a critical issue...
I'm currently exporting some vector art as a png file to be printed later. (I've also exported as jpg, same issue).And, this applies to exporting the same art from Draw or Paint.
The entire image is clearly checked to be the required pixel dimensions, and yet the saved file is always 1-2px larger (both axis).I can draw a simple outline box, any colour outline, any thickness outline, even invisible outline...set the pixel dimensions...and export...and the saved image will be 1-2px larger.
I have to pre-think, and reduce the border dimensions by at least 1px (both directions) for the saved image to be the correct pixel dimensions I need.
Why is this?I remember seeing this in previous verions of Corel, and as I said, I can export as png or jpg...I can also copy the art into Paint, and then export as.The end result is the same.
I was going to adjust the workspace/layout size, but because I wanted to see the pixel grid clearly and postion the template rectangle exactly, I left the page as Letter size so the edges would not interfere visually.It probably didn't matter, and if I knew what I was doing at the beginning, your way makes sense.
Discovering that the alignment tool only moved the second object placed, was the important factor for me. It meant once i got the template rectangle positioned, I didn't have to worry about it again for the placement and export of 54 pieces of art!
I may want to do another set of Playing Cards in the future, and if so, I'll try to remember to refer back to this information. However I still must look into "locking" an object to the pixel grid. I admit, not something I have ever done, so I have no clue (at the moment) how to do that.
These are both great solutions to that problem.Thanks again Ronny and Eskimo (and Mek) for all your input.
As I mentioned, I discovered that "no outline" is just "no colour" and that there is still an invisible outline...
and, Corel adds the thickness of that outline to the final exported bitmap. This is what my orignal problem was, and why I was having difficulty. (And the original topic of this thread)
*so its important to set a correct line thickness, even though it can't be seen.
airdave said:As I mentioned, I discovered that "no outline" is just "no colour" and that there is still an invisible outline...
airdave said:and, Corel adds the thickness of that outline to the final exported bitmap. This is what my orignal problem was, and why I was having difficulty. (And the original topic of this thread)
In my experience, "no outline" really is "no outline", and CorelDRAW is not adding in some invisible outline width when exporting.
If a "no outline" rectangle is not aligned to the pixel grid, it's that misalignment that results in the "one pixel larger than expected" problem when exporting to a bitmap.
As an aside, when using my Quick Export macro, such a rectangle can be exported to bitmap with the correct dimensions even if it is not aligned to the pixel grid. So, there is something different between exporting to bitmap using the regular CorelDRAW export dialog and performing the same export using the CorelDRAW API through a macro.
ahh understood!
Here's a PNG file created from a poker card template in Draw 2018. I opened the PDF template that was created in Illustrator, all vector, renamed and saved.
I changed all outlines to inside the bounding box, added the image, placed the green to indicate the trimat the orange, grouped all, powercliped to the green removed the green outline and saved. I changed the documents measurements to pixel and saved.
I converted everything to an image and exported to a PNG, I reimported the PNG to another page and placed the black behind all to demonstrate no white lines and exported to a low-res PNG for this forum. Next, I'll create from 2018 directly as a pixel drawing.