Copy link to clipboard
Copied
I created iluustrator plugin and i want c++ code for get base64 of artboard image
Copy link to clipboard
Copied
What underlying format do you want to encapsulate - converting anything to base64 is the trivial part, it's getting the "image " that is the work.
Copy link to clipboard
Copied
i want PNG format
Copy link to clipboard
Copied
I do not have the Illustrator SDK at the moment, but if there is no command to give the artboard as raster - I would not expect to find such an option - then you probably would need to export as PNG, then open as a file and finally Base64 encode it.
Copy link to clipboard
Copied
You can use Rasterize Suite (RasterizeWithPadding if you want to rasterize only part of document, you need to provide bounds, you can calculate artboard bounds or you can use RasterizeDocument if you want to rasterize whole document).
Using Rasterize Suite you will get new raster type art object. Then use Image Optimization Suite with Data Filter Suite to convert raster to PNG.
Copy link to clipboard
Copied
Thanks a lot! I was looking for this information all around the internet. You made my day.