imagemagick 6.6.6-6 and 6.6.6-7

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#21 Post by slavvo67 »

Mike,

Let me know if you get it working or not.

Thanks,

Slavvo67

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#22 Post by miriam »

slavvo67, thanks for the pets. Also thanks for the information. I'd never heard of Xournal. I'll try LibreOffice for pdfs too.

Currently I use Calibre to convert them to something more usable, or as a last resort I extract the text with pdftotext and any images with pdfimages. If the pdf has any vector images I have to make a screengrab of that page, crop to just the image and embed that in whatever I construct (usually either html or epub).

mikeslr, no worries. I can't help evangelising about ImageMagick. :) I use it often. It's a life saver for me.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

ImageMagick-6.8.6_10-x86_64-1.pet won't run in Xenialpup64

#23 Post by mikeslr »

Hi slavvo67,

Finally had time to begin exploring the pets you provided. I started with ImageMagick-6.8.6_10-x86_64-1.pet as mostly I run Xenialpup64.

Installed, then ran mogrify via terminal. It reported that libMagickCore-6.Q16.so.1 was missing. Easily solved by:

ln -s libMagickCore-6.Q16.so.1.0.0 libMagickCore-6.Q16.so.1

Similarly, ln -s libMagickWand-6.Q16.so.1.0.0 libMagickWand-6.Q16.so.1 cleared up that absence.

But then it reported libIlmImf.so.7 wasn't found. PPM, Ubuntu Repo Search and pkgs.org had nothing relevant, Any ideas?

I'll try out the other pets soon,

Edit: Solution posted further down.

mikesLr
Last edited by mikeslr on Fri 19 Jan 2018, 18:17, edited 1 time in total.

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#24 Post by miriam »

libIlmImf.so.7 comes from OpenEXR
http://www.openexr.com/

OpenEXR is a high dynamic range (HDR) raster file format, released as an open standard along with a set of software tools created by Industrial Light and Magic, under a free software license similar to the BSD license.

High dynamic range refers to the way lighting in a bright area of a picture normally blows out if you try to show the dimmer parts, and if you try to show the brighter parts then the dimmer parts go to black. HDR lets you keep information from both, optionally displaying one or the other, or even manipulating gamma to display both. at once.

I have libIlmImf.so.6
I don't know what package brought it in.

I'm attaching it in case it is a help. Be aware though, that version number changes, like from 6 to 7 can mean some functions are in one that are not in the other. It's probably not going to affect normal use much though.
Attachments
libIlmImf.so.6.gz
(233.5 KiB) Downloaded 163 times
Last edited by miriam on Mon 15 Jan 2018, 22:00, edited 1 time in total.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#25 Post by miriam »

Oh! Just occurred to me, my machine is 32-bit, not 64-bit, so that might be a problem... try it and see.

Alternatively you could download the OpenEXR code from their website (http://www.openexr.com/downloads.html) and compile it if you have your Puppy devx file installed. It's usually pretty easy.

Unarchive the tar.gz file to a convenient place (I have a "compile" folder where I like to do this kind of thing). Open a command line in that place. Then give these commands:

Code: Select all

./configure --prefix=/usr
make
make install
[color=blue]A life! Cool! Where can I download one of those from?[/color]

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#26 Post by miriam »

Hmmm... I just checked my version of ImageMagick. It is an older one, 6.6.8-1 (2016-10-29) but it mentions that it features HDRI, so perhaps ImageMagick contained the libIlmImf.so file after all.

Maybe you could get it from one of the Ubuntu or Debian archives:
http://archive.ubuntu.com/ubuntu/pool/u ... agemagick/
http://ftp.debian.org/debian/pool/main/i/imagemagick/

The archive lists are a bit confusing. Take your time and read the names carefully. They are named according to package, version, and kind of machine they are made for.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#27 Post by mikeslr »

Hi miriam,

OpenEXR was a nice hint. Sought, found, downloaded OpenEXR-libs-1.7.1-7.el7.x86_64.rpm and decompressed it. Then discovered other dependencies that I think will be met by Ubuntus libilmbase12_2.2.0-5_amd64.deb. The libs within are at the so.12 level, but creating so.7 symlinks seems to satisfy. My guess is that all included libs + symlinks will be necessary. But I'm adding them one at a time. Don't want to create a pet including unnecessary libs,

FYI, using lxterminal to create several symlinks is a breeze. I write the first one in geany, then cut and paste into lxterminal opened to /usr/lib and press return. For example:

ln -s libImath-2_2.so.12.0.0 libImath.so.7

Pressing the up-arrow duplicates that line with the cursor at the end. I can then backspace, delete and just type what needs to be changed and press return again to create command:

ln -s libHalf.so.12.0.0 libHalf.so.7

or, if more complicated, do a draft in geany, then cut & paste into the terminal, for example

ln -s liblexMath-2_2.so.12.0.0 libIexMath.so.7


An interesting sidenote. The imagemagick-xxx-x86_64.pet includes a symlink named /lib64 which is both within and to its parent /lib. Xenialpup64 actually follows that but can't follow a similar symlink within and to /lib named x86_64-linux-gnu. The latter is where 64-bit libraries are often placed when applications are built for Ubuntu. Xenialpup64 can't even 'find' the latter.

For reasons which would bore you, I've been up too long. Will take a brake and return to this project tomorrow.

mikesLr

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#28 Post by musher0 »

Hi gals and guys.

In case you do not know, the netpbm suite of image utilities can do most if not all
of what imagemagick does with less complication and less disk space occupation.

You will find in this post a complete list of the netpbm utilities (as of Dec. 5, 2017).

Interested Puppyists may find a recent copy here in pet archive format of both
the executables and the documentation.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#29 Post by miriam »

musher0, yes. The netpbm suite is a great old mainstay. It can do some things that nothing else I've found can do, such as converting Amiga icon .info files into .png images. Netpbm is wonderful.

Another nice use of netpbm is the very simple text format of some of its old image formats, such as .ppm format. This lets you write programs that create pixel output as text values. Then it can be encoded to another format such as mjpeg for compilation into a video, like in this cool experiment:
http://nullprogram.com/blog/2017/07/02/

I'm attempting something like this, but manipulating galaxies as pixels in an experiment playing with some thoughts about gravity. I'll almost certainly be using netpbm and its .ppm format in this way.

However ImageMagick has a lot of nice things netpbm doesn't have, such as the ability to list fonts' proper names, the ability to convert hundreds of files with a single command (that might be possible using the shell's for/do loop command, but ImageMagick does it right there in its own command). ImageMagick also can automatically number output files (flower001.jpg, flower002.jpg, flower003.jpg... etc)

ImageMagick also lets you return lots of information about files. I use that when hand-constructing quick HTML pages. I've set up a simple command in the context menu for images, that, when selected, feeds the image file to

Code: Select all

identify -format '<img src="%f" width="%w" height="%h" title="%f">'
and then my script puts it into the clipboard using

Code: Select all

xclip -selection c
I then CTRL-V paste it into the text editor and I have the image tag all constructed.

Another nice thing about ImageMagick is that it has its own display program which can display oodles of formats. My absolute favorite display program is "gqview" but when I encounter a format it can't show, then ImageMagick's "display" program is the one I use.

But ImageMagick lets you do much, much more too. You can even tell it to sense where the edges of an image are and let it decide where to crop or otherwise edit an image.

Both packages have great advantages. I also use Gimp lots, and Inkscape too.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#30 Post by slavvo67 »

Mike:

All of the Imagemagick files I uploaded are needed. Some are dependencies renamed for RU Xerus purposes but I don't remember what I have in them. That's part of the problem with combining pets and debs into one package.

I noticed the Python package that I uploaded doesn't have a python link so in /usr/bin you need to right click on Python2.7 and make a link named only Python. Keep it in the same place.

Hopefully that helps.

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#31 Post by miriam »

slavvo67, I wanted to thank you for your suggestion about loading a PDF document into LibreOffice in order to convert it to something more useful. I was sent a PDF document by a friend yesterday who was desperate to get it converted (it was an application form for a local group). Using your advice I easily converted it to the format my friend needed using LibreOffice Writer. I would have never thought of doing that.

Thank you. I'm very grateful.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

symlinks for ImageMagick-6.8.6_10-x86_64-1.pet

#32 Post by mikeslr »

Hi slavvo67, miriam and All,

As promised (albeit later than anticipated) I've completed (I think) figuring out how to run slavvo67's ImageMagick-6.8.6_10-x86_64-1.pet under Xenialpup64. Turns out, my initial hunch was right: all that was required was some symlinks. Unfortunately, I got off to a bad start by forgetting to check what binaries were already on the system resulting in an unnecessary hunt for binaries. Later, I realized that libImath-2_2.so.12.0.0 satisfied the missing libImath.so.7 if a symbolic link to libImath-2_2.so.12.0.0 was named libImath.so.7. But only after a good night's sleep and some time away from the project did it occur to me that the previous binaries I had installed complicated matters.

The attached xenialpup64_imagemagick_symlinks.pet is the result. With both it and ImageMagick-6.8.6_10-x86_64-1.pet installed under Xenialpup64 typing "mogrify" --without the quotes-- in a terminal brings up what appears to be a display of suggested commands to use with that application.

Since imagemagick is actually an umbrella application for modules, of which mogrify is one, and I don't know the others, I am reluctant to suggest that I have tracked down all that was necessary. Further testing suggestions are welcome.

Regarding the other applications slavvo67 provided for my exploration, I have neither used nor explored them fully. Most important to note about this is

I did not install the python-2.7.1.pet. My system already had python installed, required by other applications. Installing another version was likely to break things. Hopefully, the python already installed will satisfy imagemagick.

imagemagick2.pet appears to only duplicate the xml files found in /etc/imagemagick in both the imagemagick1.pet and in the ImageMagick-6.8.6_10-x86_64-1.pet. The files in imagemagick1.pet duplicate those in ImageMagick-6.8.6_10-x86_64-1.pet.

I'll review slavvo67's post regarding pdfchuck and see what it has to offer. Or maybe it's just something I forgot to remove from my download folder. :oops:

mikesLr

p.s. Installed pdfchuck.pet after searching for posts about it. Ran the choice to convert a pdf to a jpg. Worked OK -- well, the background of the resulting page was light-grey rather than white, but readable.

Suggest further testing by someone familiar with imagemagick.
Attachments
xenialpup64_imagemagick_symlinks.pet
Requires slavvo67's ImageMagick-6.8.6_10-x86_64-1.pet.
(646 Bytes) Downloaded 191 times

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#33 Post by miriam »

The commands in the ImageMagick suite are listed at:
https://www.imagemagick.org/script/comm ... -tools.php

In version 6 and earlier:

animate - animate an image sequence on any X server.

compare - mathematically and visually annotate the difference between an image and its reconstruction.

composite - overlap one image over another.

conjure - interpret and execute scripts written in the Magick Scripting Language (MSL).

convert - convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

display - display an image or image sequence on any X server.

identify - describe the format and characteristics of one or more image files.

import - save any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen.

mogrify - resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert writes to a different image file.

montage - create a composite image by combining several separate images. The images are tiled on the composite image optionally adorned with a border, frame, image name, and more.

stream - a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making stream desirable when working with large images or when you require raw pixel components.


I mostly use convert, mogrify, display, import, animate.
I've never used compare, montage, conjure, or stream. (I didn't even know about stream, or conjure.) :)


For the most recent version of ImageMagick two additional tools exist, which might be intended to eventually supplant all the others. They aren't in my version, and I was surprised to learn of them:

magick - convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

magick-script - use this scripting language interpreter to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

I love the fact that I learn something new every day. :D
[color=blue]A life! Cool! Where can I download one of those from?[/color]

Post Reply