Solved

convert attributes to a jpeg file


Badge +1

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 !

icon

Best answer by chrisatsafe 24 June 2022, 18:48

View original

2 replies

Badge +2

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

Badge +1

@chrisatsafe​ Thank you very much !

Reply