Bug 701272 - No jpg produced by master but 9.xx is fine
Summary: No jpg produced by master but 9.xx is fine
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: Macintosh MacOS X
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-27 03:49 UTC by Paul Wessel
Modified: 2019-07-02 08:44 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Simple baseman frame EPS file. (22.31 KB, application/postscript)
2019-06-27 03:49 UTC, Paul Wessel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Wessel 2019-06-27 03:49:56 UTC
Created attachment 17780 [details]
Simple baseman frame EPS file.

Given bug id https://bugs.ghostscript.com/show_bug.cgi?id=701186 we wanted to try to build gs from master.  However, the gs command

gs -dNOPAUSE -dBATCH -sDEVICE=jpeg -g1369x1338 -r300 -sOutputFile='test.jpg' -ft.eps

fails to produce the jpeg output (9.27 and earlier all work).  Perhaps this is a temporary instability in master but we wanted to point it out as it is pretty serious for our use.  gs is installed via brew install ghostscript --HEAD, which compiles the gs source codes from the master branch. The commit hash is 12ffa0f40.
Comment 1 Chris Liddell (chrisl) 2019-06-27 07:15:45 UTC
It does produce the output file for me, on Linux.
Comment 2 Ken Sharp 2019-06-27 07:40:42 UTC
(In reply to Paul Wessel from comment #0)

> Given bug id https://bugs.ghostscript.com/show_bug.cgi?id=701186 we wanted
> to try to build gs from master.  However, the gs command
> 
> gs -dNOPAUSE -dBATCH -sDEVICE=jpeg -g1369x1338 -r300 -sOutputFile='test.jpg'
> -ft.eps
> 
> fails to produce the jpeg output (9.27 and earlier all work).

I've just built Ghostscript (from the SHA1 in comment #0) on Windows, Linux and Mac. The supplied command line produces a JPEG output file on all three platforms.

BTW if you are going to use EPS files you can use -dEPSCrop instead of supplying a fixed media size. Its easier and works for EPS files whose origin isn't 0,0.

I'm assuming the '-' on '-ft.eps' is a typo since the file supplied has the name ft.eps.

You haven't supplied the stdout/stderr output, is there anythign there which might give a clue as to your problem ?


> pretty serious for our use.  gs is installed via brew install ghostscript
> --HEAD, which compiles the gs source codes from the master branch.

I suspect this is your problem. We don't use brew and don't have anyone who knows anything about it. But it seems likely that whatever its doing, its doing it wrong.

The supported method of building Ghostscript requires Git and autotools to be installed. With those packages available, from a terminal window do:

git clone git://git.ghostscript.com/ghostpdl.git

Then cd to the resulting ghostpdl folder and

./autogen.sh
make

For me that builds a working version of Ghostscript using MacOS 10.14
Comment 3 Ken Sharp 2019-07-02 08:44:10 UTC
Closing due to lack of response.