Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghostscript not installed in Centos #1391

Closed
whikloj opened this issue Dec 19, 2019 · 1 comment
Closed

Ghostscript not installed in Centos #1391

whikloj opened this issue Dec 19, 2019 · 1 comment

Comments

@whikloj
Copy link
Member

whikloj commented Dec 19, 2019

Currently creating thumbnails from PDFs is not working in Centos

[vagrant@claw drupal]$ convert test.pdf -thumbnail 100x100 jpeg:-
convert: Postscript delegate failed `test.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/678.
convert: no images defined `jpeg:-' @ error/convert.c/ConvertImageCommand/3046.

This is because ghostscript is not installed.

[vagrant@claw ~]$ gs -v
-bash: gs: command not found

[vagrant@claw ~]$ sudo yum update ghostscript
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: muug.ca
 * epel: muug.ca
 * extras: muug.ca
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.team-cymru.com
 * updates: muug.ca
Package(s) ghostscript available, but not installed.
No packages marked for update

[vagrant@claw ~]$ sudo yum install ghostscript
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: muug.ca
 * epel: muug.ca
 * extras: muug.ca
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.team-cymru.com
 * updates: muug.ca
Resolving Dependencies
--> Running transaction check
---> Package ghostscript.x86_64 0:9.25-2.el7_7.3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                         Arch                       Version                             Repository                   Size
==================================================================================================================================
Installing:
 ghostscript                     x86_64                     9.25-2.el7_7.3                      updates                     112 k

Transaction Summary
==================================================================================================================================
Install  1 Package

Total download size: 112 k
Installed size: 150 k
Is this ok [y/d/N]: y
Downloading packages:
ghostscript-9.25-2.el7_7.3.x86_64.rpm                                                                      | 112 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ghostscript-9.25-2.el7_7.3.x86_64                                                                              1/1 
  Verifying  : ghostscript-9.25-2.el7_7.3.x86_64                                                                              1/1 

Installed:
  ghostscript.x86_64 0:9.25-2.el7_7.3                                                                                             

Complete!

[vagrant@claw ~]$ convert test.pdf -thumbnail 100x100 jpeg:- > test.jpg

[vagrant@claw ~]$ identify test.jpg
test.jpg JPEG 100x56 100x56+0+0 8-bit DirectClass 6.58KB 0.000u 0:00.000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants