Converting SVG to BMP for Launch4J used to work......
Posted: 2014-07-22T06:03:25-07:00
Ok so we had an old server that was working fine, but it died. We have built a new server with ImageMagick 6.8.9 and we are now having issues.
We have a script that runs to update the splash screen on a Java Application at build time using the following command ...
This produces an image from the Splash.svg and adds the current version and build number to it. We then attempt to use this file as a splash image in Launch4J. Since we upgraded the ImageMagick this image is no longer acceptable to launch 4J and it errors when trying to display it. I have no idea what version of ImageMagick was on the old server.
If I take the output of ImageMagick and open it in say MSPaint/PSP, make a change, save it then undo the change and re-save it the image works fine in Launch4J.
Comparing the "identify -verbose" outputs of the two images the only difference I can see is after the save in MSPaint there is an extra attribute in the output ..
"Gamma: 0.454545"
Not sure if I can attach files on the forum but once I've opened this topic I will attempt to upload a broken and a working one.
**EDIT** I have uploaded a ZIP with two .bmp's and a .txt for each with the output from Identify.- https://mega.co.nz/#!2dtjQaRD!Fyt-IAWgk ... rlPjngpv58
Any help in getting this working again would be greatly appreciated. I need to get it working direct from ImageMagick again so we can automate the build process. Currently I have to manually edit the image and build a new .exe with Launch4J. I'm also going to post on the Launch4J forum in case they know of a work around.
Plasma
We have a script that runs to update the splash screen on a Java Application at build time using the following command ...
Code: Select all
convert -font dejavu-sans-book -draw "text 123,75 'Version: 6.2.0'" -draw "text 125,90 'Build 594'" +matte splash.svg splash.bmp
If I take the output of ImageMagick and open it in say MSPaint/PSP, make a change, save it then undo the change and re-save it the image works fine in Launch4J.
Comparing the "identify -verbose" outputs of the two images the only difference I can see is after the save in MSPaint there is an extra attribute in the output ..
"Gamma: 0.454545"
Not sure if I can attach files on the forum but once I've opened this topic I will attempt to upload a broken and a working one.
**EDIT** I have uploaded a ZIP with two .bmp's and a .txt for each with the output from Identify.- https://mega.co.nz/#!2dtjQaRD!Fyt-IAWgk ... rlPjngpv58
Any help in getting this working again would be greatly appreciated. I need to get it working direct from ImageMagick again so we can automate the build process. Currently I have to manually edit the image and build a new .exe with Launch4J. I'm also going to post on the Launch4J forum in case they know of a work around.
Plasma