General :: ImageMagick Command Sometimes Fails?

May 5, 2011

I have an ImageMagick command that is something like this:

convert "/path/to/photo" -set comment "(c) my company" -resize WxH miff:- | composite -dissolve 30 -geometry +40+138 -quality 80 "/path/to/logo.miff" - jpeg:"/path/to/photo_for_public"

Directory /path/to is mounted over NFS (same network). Some options of fstab that might be helpful:

Both rsize and wsize are 3kB
hard,proto=tcp,timeo=600,retrans=2

Sometimes the imagemagick command fails and produces no file (/path to/photo_for_public might not emerge after command execution). Files might be from 100kB to 10MB. We usually re-run the command for files not generated. Sometimes it fails even twice, so we do it third time (hilariously funny, but even a third run can fail).

Are there any thoughts what may be wrong with my photo-processing setup?

View 1 Replies


ADVERTISEMENT

General :: The Trick With The "import" (imagemagick) Command?

Jun 3, 2010

To take a screenshot(or partial screenshot), I use to use the command-line, type "import <filename>.png" and then "alt-tab" away from the console (for me, xterm) and then (usually) select a part of the webpage showing up on the browser. However, I find in my modern X-window installations (I use osuse and slackware, with several window managers: xfce, icewm and awesome) the alt-tabbing bit doesn't work any more.To get by, I have to reduce the size of the console so that the bit I want to capture is visible as I write the import commandI figure this is an X problem, but it could also be an imagemagick problem (on that subject, I think I'm going to try out graphicsmagick soon)

View 2 Replies View Related

General :: ImageMagick's "import" Command Line Program Failing To Take A Screenshot From CRON Script

Feb 16, 2011

I wrote a simple command line script which is suppose to take my screenshot every 5 minutes.(using ImageMagick's "import" program)

Here is the script (shottr.sh):

This is working fine if I execute by hand i.e:

The script itself is being executed (I hear a voice saying: "Screenshot") but the actual screenshot is not taken.

Be assured that it is NOT permission issue (I placed a simple "touch" invocation and file was created)

May be if it's run from cron...it doesn't have a "window" so it can't take a screenshot from nowhere? If that is the case, then how can I workaround it?

View 1 Replies View Related

Software :: (imagemagick) Command Cannot Compress Png Image?

Jan 12, 2011

in imagemagick,i have a png format picture, but it seems too big for me,i wanna compress it ...how can i do ...command line...Code:convert "png.png" -strip -units PixelsPerInch -density 96 -quality 60 "png2.png"this command can't compress the picture, the worse is: the size will be bigger...

View 4 Replies View Related

Ubuntu :: Error - Failed To Save File ImageMagick Returned Error Code 11 Command Line

May 1, 2010

simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?

View 6 Replies View Related

General :: Custom Xen Shutdown Command Fails?

Dec 26, 2010

I have a custom command I've made to quickly shut down all of my xen instances.

Code:

[root@LCENT02 ~]# virtdown
-bash: syntax error near unexpected token `2'

As you can see it fails when I try to run it on the command line. It is stored in an ~/.env file in my home directory. What is odd to me is if I open the .env file and copy the command from there and paste it into the command line, it does actually work!

Code:

[root@LCENT02 ~]# for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Domain 1 is being shutdown
Domain 2 is being shutdown
Domain 3 is being shutdown

And this is how I have the command entered into my .env file:

Code:

alias virtdown="for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done

Why would this command work if you paste it onto the command line but not use the custom command virtdown?

View 1 Replies View Related

General :: ImageMagick Installation On I686-pc- Gnu?

Jun 6, 2010

while installing ImageMagick on my i686-pc-linux gnu, everything seems to go fine when i put ./configure --with-modules in action. however, after this, as soon as i execute "make"

it gives loads of error as shown below:

"make all-am
make[1]: Entering directory `/home/vijitkarma/ImageMagick-6.6.2-2'
CC magick/magick_libMagickCore_la-animate.lo
make[1]: Leaving directory `/home/vijitkarma/ImageMagick-6.6.2-2'

[Code]...

View 3 Replies View Related

General :: Dd Command Fails "truncating If Try Same Command With Less Value"

Mar 22, 2010

dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2097152 dd: truncating at 2199023255552 bytes in output file `/var/images/abc.img': File too large

The dd commad fails here saying its truncating if I try same command with less value for seek it works dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2088960

0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.1e-05 seconds, 0.0 kB/s

Whats the reason behind this and how can this be solved ? Note that there is 3.9T available on disk for the above commands to execute.

View 4 Replies View Related

General :: CIFS Mounting Works Via Command Line - Fails With Fstab

Dec 2, 2009

I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.

[Code]....

Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234

The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

View 2 Replies View Related

General :: Install PerlMagick - ImageMagick - Where Do I Find Values For LIB / INC

Jun 2, 2011

I downloaded, configured and installed ImageMagic-6.7 without too much trouble.

I'm trying to install the perl module Image::Magick, and using MCPAN just errors out big time.

I read in the docs for installing ImageMagic, that I need to edit the Makefile.PL in the PerlMagick directory before I can do a make / make install.

I'm supposed to change the LIBS and INC, but I have no idea what I'm supposed to change them to? Do I just add to what's there? Where do I find the values to add/change to?

View 10 Replies View Related

General :: Why Does Imagemagick Convert Make The First Page Of Output PDFs Too Large

Mar 9, 2011

When I run

convert *.jpg output.pdf

the output looks like this:

Why is the first page bigger then the others in the PDF? The original JPEGs were all the same size!

View 1 Replies View Related

General :: Using Convert From Imagemagick Package To Convert Multiple Jpg Files?

Jul 18, 2010

I'm trying to use convert, I have installed the imagemagick. I use this line:convert *.jpg test.pdf but I'm only able to convert to pdf 1 single jpg file, not multiple files at once. When there's more than one file, I get the following error: Segmentation fault

View 5 Replies View Related

CentOS 5 :: 'AT' Command Fails To Rm From PHP

Jun 18, 2009

I have tried every variation I can think of to get an 'at' to rm a file after a certain amount of time.

echo 'rm -f /var/www/media/images/tempProducts/XYZ.png' | at now + 2 minutes

In php:

$apCommand = "echo 'rm -f " . $sTempName . "' | at now + 2 minutes";
exec ($apCommand);

I have:

- pasted the command into the command line as root and it works fine so it seems to be rights related -- rm gets scheduled and the file gets deleted after 2 minutes

- tried every variation of sudo within the statement including making sure that apache is listed in sudoers

- chmod to 777

- chown to apache

The rm command does get scheduled into the 'at' queue but the rm never removes the file.

at -c (without adding sudo to the 'at' statement)
#!/bin/sh
# atrun uid=48 gid=48
# mail apache 0
umask 22

[Code]....

View 3 Replies View Related

Red Hat :: Net Time Set Command Fails With Success?

Jul 12, 2010

On Red Hat Enterprise Linux Server release 5.4, I enter the command:net time set -I 192.59.196.66Where 192.59.196.66 is the IP address of a Windows Server 2008 time serverThe response is:/bin/date 071218072010.20 failed. Error was (Success)The actual clock time does not get updated. However, evidently it did really communicate with the time server on 192.59.196.66, because the value in the response 071218072010.20 does correspond to the time on the time server, albeit in the somewhat bizarre format MMDDHHMMYYYY.SS.

View 1 Replies View Related

Networking :: FTP MLSD Command Fails In FileZilla

May 13, 2011

I have a problem with my filezilla (or my ftp server). When I want to connect to my ftp server (and also other ftp servers!), after MLSD command, I get a "Connection timed out" error.

Log:
Code:
Status: Resolving address of khanemashroote.ir
Status: Connecting to 46.4.196.109:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.4rc2 Server (Debian) [::ffff:46.4.196.109]
Command: USER badihi
Response: 331 Password required for badihi .....
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing

View 1 Replies View Related

CentOS 5 :: Installing ImageMagick Without-x?

Apr 15, 2009

I'm attempting to install ImageMagick on my shiny new CentOS 5 server, but it wants to install a bunch of X libs and ALSA to get that to run.

I don't really want sound software and X installed. I see there is a configure option to install --without-x.Are there any alternatives to compiling from source? Any sort of rpm you know of that I am not seeing?

View 2 Replies View Related

Fedora :: Library Access - Command Rpm -Uvh *.rpm This Fails Due To Many Dependencies

Nov 18, 2009

I installed FC 12, 64 bit yesterday. I downloaded open office and unpacked it. I then issued the command rpm -Uvh *.rpm this fails due to many dependencies Some of these are:

[Code]...

how to "link" or make these and presumably other libraries searchable.

View 1 Replies View Related

Ubuntu Servers :: (8.04) Apt-Get Install Squid Command Fails

Mar 8, 2010

Ubuntu Server 8.04. I have 2 servers in the same rack, on the same subnet, using the same DNS servers and build with the same media. On one of them the following command fails
Code:
apt-get install squid
On the other on the package was installed with out any problems. I have checked the /etc/apt/sources.list files and they are identical. Actually, it could not find mutt either.

View 5 Replies View Related

Server :: Crontab Fails But Command Line Works ?

Feb 19, 2011

Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;

If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.

View 3 Replies View Related

Software :: At Command Fails \ Intention Is To Get Itself Executed Every Minute?

Mar 31, 2011

Here is my script for at command. The intention is to get itself executed every minute.

Code:
logfile=/tmp/attest.log
loginterval=1

[code]....

View 4 Replies View Related

Programming :: Python: Commands.getoutput (command) Fails

May 26, 2010

I've writte a small Munin plugin using python, which basically runs a shell command, and write the output to a file. For some reason the script fail quite often, and it seems to be failing at the "commands.getoutput" statement. This is what's leading up to that statement:

[Code]..

View 4 Replies View Related

OpenSUSE :: Look Command Fails Look /usr/share/dict/words - No Such File

Dec 20, 2009

How can I install the dict file to look works?

I am running SUSE 11.1

Here is the error:

View 2 Replies View Related

Ubuntu :: What's The Command To Initiate The Gnome System Tray For When It Fails To Load

May 14, 2010

what the command is for the System Tray, so thought I'd ask here. Note I am not asking how to put a system tray on the panel - I know I can add a notification area, but when I reboot there will be 2 of them, so this is not what I want.

I just need to be able to initialise it when it fails to load. Since my upgrade to Lucid, this has happened a couple of times, so expect it will happen again soon enough.

View 8 Replies View Related

Ubuntu :: 9.10 - ImageMagick Installation (Runtime Error)

Jan 8, 2010

I am getting error like:
"/usr/lib/ruby/1.8/i486-linux/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.5.1 but ImageMagick 6.5.8-10 is in use. (RuntimeError)".
So, I am trying to install ImageMagick 6.5.1. But it gives me error like:
"ERROR: Can't create '/usr/local/man/man3".
And I am using Ubuntu 9.10.

View 3 Replies View Related

Debian :: Imagemagick On Lenny Up From The Lowly 6.3.9 Version Up To 6.4.9

May 2, 2010

I need to get imagemagick on a Debian Lenny up from the lowly 6.3.9 version up to 6.4.9, I have looked it up, but can't get brief details on this ... if I just apt-get install, well I get the older version. Do I have to come up with my own deb package?

View 3 Replies View Related

Software :: Build ImageMagick Into Single Binary?

Mar 30, 2010

I have script that I wish to distribute to a small group that requires ImageMagick, but many in the group don't have ImageMagick installed. I'm not really in a position where by I can install ImageMagick on all the groups machines, and my knowledge of compiling is pretty restricted to ./configure; make; make install. Is it possible to compile ImageMagick (or indeed any other program) into a single binary without any external dependencies? I believe to accomplish this I provide ./configure with the following arguments:

[code]...

View 9 Replies View Related

Software :: Imagemagick++ - How To Achieve Strip In C++ Code

Jan 27, 2011

when i use image magick...in command, use -strip, can remove image's verbose but c++ code, how can i do?

View 1 Replies View Related

Software :: Imagemagick To Find Duplicate Images

Nov 18, 2010

I have a folder that over 70,000 images (within it is a complex hierarchy of subfolders). Of these 70,000 images I assume that I only have ~10,000 unique images; the rest are copies that have been resized. I would like to somehow delete all of the resized copies of the larger originals and remove them, keeping only the original image.

Is there a way to use imagemagick (or any other application) to scan this folder recursively and determine which files may be (resized) copies?

View 1 Replies View Related

Programming :: Imagemagick With For Loop On The Commandline Does Not Work

May 26, 2011

I have images in jpg format

Code:

CIMG0100.jpg
...
...
CIMG0131.jpg

I used imagemagick to convert the files to gif with the following command

Code:

for i in {100..131}; do convert CIMG0$i.jpg CIMG0$i.gif; done # works

This worked like expected, but when afterwards I wanted to scale the images

Code:

for i in {100..131}; do convert -scale 25% CIMG00$i.gif CIMG00$i_scaled.gif; done # works not it seems the system is working for about half a minute, but I get no output. The single command

Code:

convert -scale 25% CIMG100.gif CIMG100_scaled.gif # works

works as expected and gives me a scaled image. What does the convert command do in the second case? is the for-loop wrong?

View 2 Replies View Related

Ubuntu :: Can't Find Imagemagick Package In The Repositories

Apr 27, 2010

I can't find the imagemagick package in the repositories. Anybody knows where I could find a binary for that SW? I tried to install from source but failed... Everything seemed fine up to when I tried "sudo make install", and there I got lots of errors. When i try to run any command, it does not find the libraries..

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved