Q: Can I get the size (pixel dimensions) of the generated image(s)?
Hi!
Would it be advisable to parse the output?
It says Creating file: {filename}" and the next line is e g : Creating image 1616x1263
Or is there possibly another more "robust" way, if this would be volatile / not recommended to depend on?
(besides using other lib to check the dimensions of the generated image on disk)
BR! /m
Sample output:
(0.000 - 256 Mo) 252 Mo - PlantUML Version 1.2020.03beta10
(0.020 - 256 Mo) 251 Mo - GraphicsEnvironment.isHeadless() false
(0.022 - 256 Mo) 251 Mo - Forcing resource load on OpenJdk
(0.123 - 256 Mo) 251 Mo - Found 2 files
(0.124 - 256 Mo) 251 Mo - Working on C:\NKP\plantuml\src\nkp\rms\C.04-ArtService.puml
(0.148 - 256 Mo) 250 Mo - Setting current dir: .
(0.149 - 256 Mo) 250 Mo - Setting current dir: C:\NKP\plantuml\src\nkp\rms
(0.154 - 256 Mo) 250 Mo - Using charset UTF-8
(0.164 - 256 Mo) 250 Mo - Reading from C.04-ArtService.puml
(0.229 - 256 Mo) 249 Mo - ImportedFiles::getAFile filecurrent = AFileRegular::C:\NKP\plantuml\src\nkp\rms\rms-participants.iuml
(0.231 - 256 Mo) 249 Mo - Using charset UTF-8
(0.235 - 256 Mo) 249 Mo - Reading from rms-participants.iuml
(0.240 - 256 Mo) 249 Mo - Using charset UTF-8
(0.241 - 256 Mo) 249 Mo - Reading from rms-participants.iuml
(0.241 - 256 Mo) 249 Mo - Getting parent of AFileRegular::C:\NKP\plantuml\src\nkp\rms\rms-participants.iuml
(0.242 - 256 Mo) 249 Mo - -->The parent is AParentFolderRegular::C:\NKP\plantuml\src\nkp\rms
(0.306 - 256 Mo) 245 Mo - Reading file: src\nkp\rms\C.04-ArtService.puml
(0.654 - 256 Mo) 247 Mo - Compilation duration 339
(0.655 - 256 Mo) 247 Mo - Regex total/invoked/compiled 66/62/49
(0.657 - 256 Mo) 247 Mo - Matches created 385
(1.426 - 256 Mo) 219 Mo - Creating file: C:\NKP\plantuml\export\nkp\rms\C.04-ArtService.png
(2.097 - 308 Mo) 275 Mo - Creating image 1609x1108
(3.312 - 308 Mo) 229 Mo - Ok for com.sun.imageio.plugins.png.PNGMetadata
(4.622 - 308 Mo) 214 Mo - File size : 176685
(4.625 - 308 Mo) 214 Mo - Number of image(s): 1
(4.626 - 308 Mo) 214 Mo - Working on C:\NKP\plantuml\src\nkp\rms\PR.04-RetailUnitConfig.puml
(4.627 - 308 Mo) 214 Mo - Setting current dir: C:\NKP\plantuml\src\nkp\rms
(4.627 - 308 Mo) 214 Mo - Using charset UTF-8
(4.627 - 308 Mo) 214 Mo - Reading from PR.04-RetailUnitConfig.puml
(4.631 - 308 Mo) 213 Mo - ImportedFiles::getAFile filecurrent = AFileRegular::C:\NKP\plantuml\src\nkp\rms\rms-participants.iuml
(4.632 - 308 Mo) 213 Mo - Using charset UTF-8
(4.632 - 308 Mo) 213 Mo - Reading from rms-participants.iuml
(4.633 - 308 Mo) 213 Mo - Using charset UTF-8
(4.635 - 308 Mo) 213 Mo - Reading from rms-participants.iuml
(4.648 - 308 Mo) 213 Mo - Getting parent of AFileRegular::C:\NKP\plantuml\src\nkp\rms\rms-participants.iuml
(4.648 - 308 Mo) 213 Mo - -->The parent is AParentFolderRegular::C:\NKP\plantuml\src\nkp\rms
(4.661 - 308 Mo) 210 Mo - Reading file: src\nkp\rms\PR.04-RetailUnitConfig.puml
(4.706 - 308 Mo) 209 Mo - Compilation duration 44
(4.708 - 308 Mo) 209 Mo - Regex total/invoked/compiled 66/62/49
(4.709 - 308 Mo) 209 Mo - Matches created 754
(4.852 - 308 Mo) 133 Mo - Creating file: C:\NKP\plantuml\export\nkp\rms\PR.04-RetailUnitConfig.png
(5.253 - 308 Mo) 263 Mo - Creating image 1616x1263
(6.076 - 370 Mo) 322 Mo - Ok for com.sun.imageio.plugins.png.PNGMetadata
(6.252 - 370 Mo) 305 Mo - File size : 187030
(6.258 - 370 Mo) 305 Mo - Number of image(s): 1