Well, I have a good workflow process for producing custom card images for use in the PinballX/Media/Instruction Cards folder. I try to obtain or produce media with very high quality, and it is do-able here but with limitations. I was pleasantly surprised that the majority of images that I have worked with so far do have dimensions consistent with the manufacturer documented dimensions found here under Card Sizes:
http://www.pinballre.../pinball/cards/
So, producing images although still a manual process is pretty quick and easy.
I use GIMP 2. It will open just about all image types and import from pdf. Open an image or import a pdf page with images. I just drag and drop and select what I need in dialog windows.
Tools/Selection Tools/Rectangle Select. Use the default settings in the Tool Options dialog.
Use the mouse/cursor to draw a rectangle roughly around the image.
Image/Crop to Selection
Then Autocrop Image.
In a small portion of cases, the resulting image might require some additional cropping (if the image includes cut guides or was specifically providing larger borders for trimming printed reproductions. Use the mouse/cursor to draw a rectangle, and the size of the crop area can be fine tuned with the Position and Size options in the Tool Options dialog
After cropping, check Image/Print Size...
the dimensions should be consistent with a real card from that manufacturer. Most of the time it is. Sometimes you have to change the X/Y resolution. To retain the aspect ratio of the cropped image make sure the chain symbol is linked. Change the resolution until the print size is consistent with a real card. Click OK
File/Export As...
Choose a name. Select File Type. Use PNG image. Click Export. You will get a dialog where there are settings that can be toggled on/off. Just use the default as it appears and click Export. The file is ready for PinballX with no loss in quality. You could take the output to a printer. You'd probably still want to take the source file to the printer rather than the output though.
A couple of downsides. If you already have SWF files associated with a specific table, PBX will display one format or the other for that table. But not both. All files for that table must be one format to display all the images.
You could use all PNG, but PinballX stretches PNG images to fit the BG dimensions defined in PinballX.ini (Settings Wizard). The aspect ratio of the actual card may be quite different and the image will be stretched or squashed as a result. It's not bad, if you have a cabinet then you would be used to this. Direct.B2S also stretches the BG to fit the space defined in screenres.txt.
When PinballX displays SWF, the image is stretched to fit the space while retaining the aspect ratio of the image, rendering in letterbox if needed with white bars at top and bottom; or left and right. Most of the SWF in the HP media pack files have white backgrounds so this looks great most of the time.
The right way to produce a high quality SWF involves vectorizing the image and compiling it into an SWF (Flash) container. I don't have access to any Adobe tools, and I just could not find a comparable workflow using open source tools. That isn't to say that you could not use the swftools direct converter png2swf.exe, but there is a noticeable degradation in quality. It's "Ok" quality. I would not publish it in that kind of state, but it might be "good enough" for the cab when there are not any better options that don't cost $$$.
So, a compromise must be made in using custom card images. Go with PNG for the quality displayed in incorrect aspect ratio. Or go with SWF for correct aspect ratio and some loss in quality. I put in a feature request at PinballX.net to display PNG with correct aspect ratio or possibly provide users a choice in the Settings Wizard.
http://www.swftools.org/
A command for converting a PNG ro SWF might look like
png2swf.exe -o "Attack from Mars (Bally 1995).swf" -j 100 - z "Attack from MARS (Bally 1995).png"
It would be pretty easy to batch process this conversion for multiple files in a singe run.
Is it all worth it? Maybe. It's worth checking out as there is some really good work out there that can be used as extra enhancement in the enjoyment of a pinball cabinet.
Edited by Carny_Priest, 20 July 2015 - 04:58 AM.