Information in this article applies to:
Article ID: NSC2315 — Created: 25 Aug 2020 — Reviewed: 25 Sep 2021
I have scanned a number of slides using the PNG image format. The disk space required for PNG scans is very large and I have started scanning using the JPEG image format. Is there a way to convert my existing scan from PNG images to JPEG images?
Yes. There are 2 types of image data to convert.
The scan fields are the images of each field that are scanned. The deep zoom tiles are created when uScope Navigator makes a Deep Zoom image.
Note
Always make a backup copy of your job folder before making changes like those shown in this article. These are your source images and they cannot be recovered if they are destroyed or overwritten.
To convert the Scan Fields to JPEG, you must use a program to convert the image files and you must edit the uS-ScanInfo.xml file and change the ImageExtension from .png to .jpg.
Note
uScope Navigator saves all JPEG files using Q90 (quality 90). So, you should convert using that setting if available. The file extension should be .jpg for the JPEG files.
That should be all that's required. At this point, you can delete your existing Deep Zoom images and re-create them using uScope Navigator.
To convert your Deep Zoom images to JPEG, you can simply delete the Deep Zoom images and re-create them within uScope Navigator as mentioned above.
If you prefer not to re-create the Deep Zoom images, you can easily convert the PNG images to JPEG.
Note
uScope Navigator saves all JPEG files using Q90 (quality 90). So, you should convert using that setting if available. The file extension should be .jpg for the JPEG files.
At this point, your Deep Zoom image should open and display normally.
ImageMagick is an open-source image creator, editor, composer, and converter that is readily available for a number of different platforms.
Use the following command line to convert all PNG files in the specified folder to JPG.
for %f in (C:\images\job\*.png) do magick convert -quality 90 "%~ff" "%~df%~pf%~nf.jpg"
Use the following command line to convert all PNG files to JPG files in a folder and its sub-folders.
for /R %f in (C:\images\job\Deepzoom-unfiltered\*.png) do magick convert -quality 90 "%~ff" "%~df%~pf%~nf.jpg"