TYPO3 can't read or create pdf thumbnails with imagemagick or graphicsmagick - windows

I'm using TYPO3 CMS 7.6 with PHP 5.5.2 on a Windows Server 2012 (IIS), my Server administrator installed ghostscript, graphicsmagick 1.3.25 and imagemagick. Now I use graphicsmagick:
C:/GraphicsMagick/gm.exe
It works, test all graphic manipulation on install tool: Convert image formats to jpg or scaling or combining images ... only PDF Thumbnails or convert PDF to JPG isn't working.
Screenshot:
Error:
Read pdf
Image generation failed
ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['im_path'] and ['GFX']['im_path_lzw'] and ensure Ghostscript is installed on your server.
The path to gm or im is correct, because the other formats are working fine.
[GFX][im_path] = C:/GraphicsMagick/
[GFX][im_path_lzw] = C:/GraphicsMagick/
Me and my system admin don't know why TYPO3 can't create PDF Thumbnails in backend and frontend. Maybe there's something with ghostscript .. but he can create pdfs via windows command line?!? So that's a TYPO3 Problem?!
Thanks for your help or hints. ..
No PDF Thumbnails , see backend

with installing GraphicsMagick also install Ghostscript on window Server. You can download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html. Before downloading please check also the window is 64 bit or 32 bit.Then again check Environment>image Processing and Test Image. Then in "Image processing" everything is loaded successfully also "Read pdf" and "Read ai"

I have still the same problem. My TYPO3 7.6.24 LTS will not convert PDF- and AI-files to jpg. All other files are working.
Today I've update ghostscript 9.22 and graphicsMagic 1.3.23 on my windows server (IIS). Everything runs with 64bit now.
Successfully, I also tested GraphicsMagick to convert the pdf to jpg via command line cmd.exe, f.e.
"c:\Program Files\GraphicsMagick\gm.exe" -convert -geometry 160x130 c:\temp\test.pdf c:\temp\test123.jpg
But it won't work with TYPO3, see error on initial post ... now I've no idea anymore ..?! anyone else?

Have you also set the path of GraphicsMagick in TYPO3 admin panel settings>Configuration Presets>Image handling settings>write a path or select a path it should be like this screenshot as below

Related

wkhtmltopdf problems again

Unable to find Wkhtmltopdf on this system. The PDF can not be created.
First, I download the Wkhtmltopdf
Second, Install it to Program files
Third, I add it to a variable environment for the path
Fourth, Reset everything
Still, I cannot get the PDF created. There is no parameter in Odoo settings btw.
Seems like Wkhtmltopdf not installed on your system.
Please check here for more steps, click here
You can install the latest Wkhtmltopdf version from the official website.
After the successfully installed re-start your server.
Thanks

Installation of Octave via the Zip file

I downloaded the octave 5.1.0 zip file, 64 bits for Windows. After extraction, I was only able to get access to the GUI. Any help on how I can access the CLI?
Try the following command (that you can put into a starter or bat-file):
"C:\path_to_your_dir\Octave\octave.vbs" --force-gui

Getting error, ImageMagick/GraphicsMagick is not installed. windows

I am trying to use ImageMagick to manipulate photos in my rails app but when I upload the photo and post it I get this error,
"Picture Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed"
Also when I try do,
irb
require 'mini_magick'
filename = '/Users/me/tmp/testfile.jpg'
image = MiniMagick::Image.open(filename)
it gives error "gives error...MiniMagick::Invalid: ImageMagick/GraphicsMagick is not installed"
ImageMagick is added to the system path, and installed successfully, I can open imagemagick through the cmd line and bring up the interface, wondering if anyone can offer some help.
correct versions are installed of ImageMagick for my operating system.
Also vcomp120.dll is installed as well.
EDIT: This is just on the development sever, not, in production.
To answer, my own question, on the ImageMagick website binaries download section, windows x64 I used and there it has a list of three commands
magick logo: "logo.gif"
magick identify "logo.gif"
magick display "logo.gif"
I was getting error display: delegate library support not built-in '' (X11) # error/display.c/DisplayImageCommand/1888. with this. I then installed GraphicsMagick as per #Bonzo comment. Still had problems and read that alot of people were having trouble with converting images and installing the legacy utilities in the windows installer corrected this adding, convert.exe, mogrify, etc. I was then getting a error ...Wrong JPEG library version: library is 90, caller expects 62... I then searched and found that other peoples were having trouble with this error, and to remove the program that is having the conflicting "libjpeg" file, for me this was GraphicsMagic, I uninstalled and displaying images is fine now.
Also check your delegates configuration magick convert -list configure and make sure jpeg or whatever format is in there you are wanting to use.

I want to view a .ps file through Ghostscript 9.05 command prompt

I have a file abc.ps on my desktop. I have installed Ghostscript 9.05 on my machine and I want to view my abc.ps file using the command line.
GS>?????
What command should I write here. I am working on Windows 7.
Location of exe file: C:\Program Files\gs\gs9.05\bin
From the Ghostscript documentation:
GS> (c:/gs3.53/example.ps)
Just looks like you use forward slashes instead of back slashes. For example, if your Windows username is Ankit, you'd enter:
GS> (c:/Users/Ankit/Desktop/abc.ps)
You can avoid the interactive GS> commandprompt by running the command like this:
gswin32c.exe -sDEVICE=display c:/Users/Ankit/Desktop/abc.ps
Download and install Ghostview after installing Ghostscript, it is a GUI interface for Ghostscript:
http://pages.cs.wisc.edu/~ghost/gsview/get50.htm
Note: Be sure you download the same architecture. I.e. if you downloaded and installed 64 bit ghostscript, make sure you also download and install 64 bit Ghostview.

rmagick custom fonts as pictures

I'm using this script https://github.com/Joern/CustomFont/blob/master/custom_font.rb to generate pictures with text in a custom font.
It works fine.
Now I bought a very special font which works fine on my local working machine with this script.
On my server I also have Ubuntu installed, Ubuntu Server Edition.
So I synced my WebApp from my local machine to my server and then just saw that it doesn't use the font.
I installed it with fc-cache -vf and convert -list font lists the font as installed (also fc-list | grep "Innovage" brings "Innovage:style=Regular").
Strangely, rmagick just won't use the font.
In contrast, this works: convert -font Innovage-Regular -pointsize 72 label:Test test.jpg
Additionaly confusing: bringing the convert line from above into a ruby script, it doesn't use the font again.
Any other font does work, but because the font works on my local machine, it cannot have to do with the font.
So I guess the problem lies at rmagick.
It's the same rmagick and Imagemagick version as on my local machine.
I just can't get it, it's totally confusing me.
Yours, Joern.
okay the problem's solution lies at simple as it can be: the font was simply in the wrong font dir, so that it was installed by the system, but the font-dir, I compiled rmagick with, was different to the dir I put the font into.

Resources