Skip to main content

Hi!

I would like to export my datas (only attributes) on a jpeg file.

I would like to create a sort of table like on excel, with blacks border and dimentionnate the columns in order to not truncate the datas. And then export an jpeg file.

I used ExcelStyler and an JPEG writer, but it failed because it's not an raster format. So I tried with ImageRasterizer but I don't succeed.

I'm not use to manipulate raster format. So could you give me advices to suceed?

Thanks !

Hi @alc33​ ,

The ExcelStyler will only work when the writer format is set to Excel because it makes use of Excel specific format attributes. In your case, you'll likely want to try using the TableAdder and MapnikRasterizer before connecting to a JPEG writer. If you are starting with tabular data (attributes), you first need to create the geometry (i.e. outline and text) which can be done with the TableAdder; this creates vector features. Once this has been done, you need to convert from vector to raster, which can be accomplished with the MapnikRasterizer, before connecting to the JPEG writer.

image


@chrisatsafe​ Thank you very much !


Reply