Paint does something different to the jpeg header.
And Paint is able to open jpeg files that are not "strictly" windows jpegs and then update the jpeg header to what it believes is correct.
What ghostscript command are you using to generate the jpeg image?
I've used this command to create a jpeg from a PDF file:
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300 -sOutputFile=/filepath/outputfile.jpg /filepath/filename.pdf
You could try to create the image with gs. Then open it with paint and save it as a differing image.
Then try to open both images with "gimp" GNU Image Manipulation Program.
Then look at the image properties to see what is different.
That might clue you in as to what options you need to pass to gs to fix the output.
Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jack Tucky
Sent: Friday, March 10, 2017 8:19 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: IBM says invalid Jpeg
I'm on 7.3. Trying to print some Jpeg's. IBM says yeah they dont print, but if we open them in Paint and save them, they print fine.
So where do I go now? The Jpg's are converted from Png using Ghostscript.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.