Getting error, ImageMagick/GraphicsMagick is not installed. windows - ruby

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.

Related

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

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

Graphics Magick installation on Mac El Capitan 10.11.3 for TYPO3

I'm frustrated. I'm a total beginner in this (TYPO3), know well about HTML/CSS though but all the info I found on the web reads like Chinese for me. Like that one: http://mac-dev-env.patrickbougie.com/graphicsmagick/
I have no clue what that means!
I've downloaded GM, extracted the zip and double-clicked the configure file. The installation finished without any problems (as far as I can tell).
So here's the ting: can anybody please tell me, how this sort of installation is suppossed to be completed? I need it from the very beginning, actually from unpacking the zip.
Do I have to have another program, like this terminal program on the Mac, where you have to type in command lines? Do I have to write or edit code somewhere? Do I need to create folders? Where, in the TYPO3-Backend, can I check if it even works?
TYPO3 is installed and it works perfectly so far. THANKS A LOT! :)
PS: I really like to learn this (!), but my head is bumping right now :(
Easy way:
If you want to "just install" GM I suggest you to use one of OS X package managers like homebrew or macports. They can simplify configuration, building and installation process for you. So you'll only need to open Terminal and type (depending on chosen package manager):
brew install graphicsmagick or port install graphicsmagick
To verify that your installation is successful open Terminal and type gm version, as result you should see version and other details of your installation.
Fundamental way:
If you want learn how to build and install GM from sources, I recommend you to start reading official documentation. And then, by the way, read about "Make" and other tools used in build process.
As #Oles Savluk pointed easiest way to install such stuff is using homebrew. When you'll install it already, open new terminal window and use command which gm to find the path it will be i.e.: /usr/local/bin/gm - copy/write it and use in the TYPO3's Install Tool in proper place.

Running PyPDFOCR on Windows via Python - Requiring Poppler?

I'm working on a project that requires the conversion of PDFs into their searchable counterparts, and have found that PyPDFOCR does exactly what I need to get the job done. However, when trying to install the module and its external dependencies, I'm running into issues where I can't download anything windows-related that defines pdfimages such as Poppler. I've search all around for any ways to install Poppler in order to run the module, but nothing seems to be supported or working. Any ideas?
Have you tried the Poppler download from:
https://sourceforge.net/projects/poppler-win32/ for Windows platform
https://poppler.freedesktop.org/ for Linux platform

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.

Cucumber not showing coloured output in windows

this is probably something really stupid but I can't work it out.
I upgraded my version of cucumber to v 0.10.0 and now the test's (running on Win 7) are not showing coloured output with the "pretty" formatter.
When tests are run it prints this error: *** WARNING: You must use ANSICON 1.31 or higher (http://adoxa.110mb.com/ansicon) to get coloured output on Windows
I have been to http://adoxa.110mb.com/ansicon but it's not obvious to me how I should be upgrading it. Anyone know how to upgrade my version of anscion?
One of the dev's at my work figured it out.
You need to
Download Ansicon from https://github.com/adoxa/ansicon/downloads and unzip it into a directory
with no spaces
Open a command prompt and cd to the folder where you unzipped it
Now, cd into either x86 or x64 (depending on your machine’s processor) and install it globally on
your machine (For example, D:\Cucumber\ansi160\x64)
Type ansicon.exe –i OR ansicon -i and press Enter
Any program that prints ANSI colors will now display properly on your machine.
Update as of today, http://adoxa.110mb.com/ansicon is no longer accessible.
Files have been uploaded to https://github.com/adoxa/ansicon/downloads.
I tried downloading from adoxa.3eeweb.com, but Chrome warned me that the file was "not commonly downloaded and could be dangerous."
So I opted with the file from github.
Besides that, I just followed the steps mentioned above and my output is now coloured.

Resources