ImageMagick maybe broken by libgs9 upgrade
Emily
emilyw@yahoo.com
Tue Jun 23 19:32:27 GMT 2020
Hi Ken,
Any actual label.pdf would contain the Ebay buyer's name and address, and my return address. Is there a tool I can use to redact sensitive information in a PDF?
I am attaching two files: debug.txt is the output of adding `-debug all` to the convert command, and convert.exe.stackdump is a file that appears when I get the core dumped error message.
Maybe invoking Ghostscript directly will help narrow down the problem. What's the equivalent gs command?
Thanks!
Emily
On Tuesday, June 23, 2020, 5:15:04 AM PDT, Ken Brown <kbrown@cornell.edu> wrote:
On 6/23/2020 7:27 AM, Ken Brown via Cygwin wrote:
> On 6/22/2020 9:37 PM, Emily via Cygwin wrote:
>> I use ImageMagick to convert and crop shipping labels from PDFs generated by
>> Ebay. On 6/8, this command worked:
>>
>> $ convert -density 300 -crop 1500x1200 label.pdf label.png
>> Aborted (core dumped)
>>
>>
>> The command still runs on PDFs that were not generated by Ebay, but I get the
>> same error on old Ebay PDF files (from 6/8 and earlier) that previously
>> converted and cropped without problems.
>>
>>
>> This is in my /var/log/setup.log:
>>
>> 2020/06/09 19:52:15 29 install libgs9 9.52-2
>> 2020/06/09 19:52:15 30 erase libgs9 9.27-2
>>
>>
>> Cropping in a separate step after converting to PNG still works:
>>
>> $ convert -density 300 label.pdf temp.png
>> $ convert -crop 1500x1200 temp.png label.png
>>
>>
>> But in case other ImageMagick functionality is also broken, this isn't a
>> permanent solution. I tried to downgrade libgs9, but 9.27 is no longer an
>> option in setup, even after I added another mirror.
>
> Please provide a sample label.pdf for which you're seeing this behavior.
You could also try adding the '-verbose' option to your command line to see if
that gives a clue.
Ken
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug.txt
URL: <https://cygwin.com/pipermail/cygwin/attachments/20200623/60330a95/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert.exe.stackdump
Type: application/octet-stream
Size: 162 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20200623/60330a95/attachment-0001.obj>
More information about the Cygwin
mailing list