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
ADVERTISEMENT
Oct 17, 2010
I have to send a FAX (as some recipients are about 20 years behind the times). Sometimes the document looks excellent on the screen, but what comes out the other end looks terrible. So I'm trying to come up with a way to produce the best quality FAX from a vector PDF (which is searchable with images and text). Part of the goal is to preview the fax in advance, so there are no surprises. I start by converting the vector PDF to a raster (bitmap) postscript document:
[code]...
How can these steps above be improved?
View 4 Replies
View Related
May 16, 2011
I'm on Ubuntu 11.04, and am trying to overlay a static blue coastline image onto a geostationary GIF animation with 12 frames using imagemagick. The code I used to create the composite animation is as follows:
Code:
convert ( animation.gif -coalesce ) null: ( outline.tif -coalesce ) -layers Composite composite_animation.gif
The resulting animation is below:
[URL]
It's a bit hard to see, but the blue outline should be aligned much farther to the left on the image, but the vast majority of it is cut-off to the right because it is shifted so far. It should be centered. Both the outline and the background are actually cropped regions out of respectively larger images that are identical in size and are designed to be overlaid.
If I choose a cropped region farther to the right on the background animation, the cropped blue outline of the same region won't even show up at all after the overlaying, as if it is shifted completely off the screen for some reason. I have had success overlaying outlines before with the above command, but here it is not working. I tried appending "-gravity center" to the command with no success.
View 1 Replies
View Related
Jan 4, 2010
how do I compress, or reduce the resolution, of a tiff image file.I must use tiff I can not convert to JPEG etc.
View 3 Replies
View Related
Feb 18, 2011
I am trying to compress a folder by right clicking and selecting Compress...I get the following error:
An error occurred while adding files to the archive.No such file or directory
I want the folder and its content to be compressed to a .ZIP file which is natively accessible by Windows.
View 6 Replies
View Related
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
View Related
Oct 6, 2010
i need to write a short script that will compress a specific folder that`s on the Desktop (and all it`s content) and also will encrypt it with a password that is inside the script --->meaning it wont ask for a password+verification when compressing+encrypting
View 1 Replies
View Related
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
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
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
Oct 19, 2010
compress files using "zip" command into two parts?
View 6 Replies
View Related
Feb 15, 2010
i was trying to install windows xp on vbox, but the cd wont work, so i want to make an iso image from the cd and run it from that. after some research, i found this code to use disk dump and make a raw cd image:
Code:
dd if=/dev/cdrom of=~/cdrom_image.iso
ive done that successfully (making sure the drive is unmounted), but i cant even find the file now. ive searched the filesystem, but it doesnt appear anywhere.
View 1 Replies
View Related
Jun 16, 2010
i want to image my pen drive using dd command. i tried
dd if=/media/disk of=/media/disk-1/images.img
where disk is my pen drive and disk-1 is my hard disk. I boot and run the pc using linux bootable cd
View 3 Replies
View Related
Jun 4, 2011
I want an image viewer to show the images in a directory in a random order. For that, I made the following script:
cd /home/DIRECTORY
ls > files
sort -R files
cat files | gpicview
Everything looks fine, but gpicview doesn't open the images! I also tried it with pqiv but instead of just opening the images, it opens a dialog asking me which of the files I want to open.
View 6 Replies
View Related
Jul 20, 2011
this is a procedure that was put in place before i got here. We basically just install windows and then use this command to create the image
dd if=/dev/sda | gzip -c | split -b 2000m /mnt/foldername/filename.img.gz.
i have been using this for a close to 2 years but have recently run into a problem where i am only getting part of the image. This is the first windows 7 64 bit machine that i have done it on so im not sure if that has to do with it.
the error im getting is dd: reading '/dev/sda' : input/output error
it is erroring out at the exact same point everytime i try it.
View 2 Replies
View Related
Nov 1, 2010
I have used to knoppix to grab an image off a pc to my external hard drive.I then used the command dd if=/sdc1/backup.iso of sda2 bs=4096 conv=notrunc,noerror to another pc I was cloning.This process failed and the hard drive was not seen after that even using fstab.Is there any way I can verify if the iso image i grabbed is good.What command can i use to explore this iso image?
View 3 Replies
View Related
Jan 28, 2010
I have created an iso image from a RHEL5.4 disc using mkisofs.
mkisofs -A "Red Hat Linux 5.4" -V "Red Hat Linux 5.4" -v -U -J -R -T
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot
-boot-load-size 4 -boot-info-table -o /tmp/RHEL54-x86_64-dvd.iso .
It creates the iso image no problem, however when I go to boot a new server from the disc I get the boot prompt, hit enter, answer the language and keyboard questions and then it throws the following error:
"The Red Hat Enterprise Linux Server CD was not found in any of your CDROM drives. Please insert the Red Hat Enterprise Linux Server CD and press OK to retry".
Perhaps I need to specify in my mkisofs command that its supposed to be iso9660? This is on a RHEV virtual machine.
View 3 Replies
View Related
Mar 3, 2011
Is there a way/command to back up all data from a Red hat Linux 4 serve[Including user rpofiles, data, group info, encrypts] either to a Red hat Linux 5.4 machine or as an Image file or manageable resource?
View 1 Replies
View Related
Feb 25, 2010
Will Brasero do DVDs? Or if it doesn't, what's the growisofs commands to write a DVD?
View 2 Replies
View Related
Oct 26, 2015
I have been following the Xen Beginners Guide here: [URL] .....
Everything was going smoothly until I got to the 'Configuring xen-tools and building our guest' section (two thirds down the page).
I installed xen-tools and then typed the following in a terminal window (as root):
xen-create-image --hostname=development-pv-guest --memory=2048mb --vcpus=2 --lvm=develop --dhcp --pygrub --dist=jessie
I admit PV is new to me, compared to simple HVM, so I have a number of questions:
1. Why the command not found error?
2. Should I be booting from the Xen option or regular boot option at the start up screen when creating the xen image? I've tried both and get the same error message.
3. I have Debian 8 (Jessie) installed on my system and I wasn't sure whether I should therefore make this the guest OS in my Xen PV. In asking this question I'm thinking in terms of HVMs - but I assume my Xen PV needs a guest OS of some kind? Or is my host Debian 8 already acting as a guest OS in Xen PV? I'm confused
4. If I do need to install a guest OS, is it better to go for an earlier version of debian - so as not to be so resource hungry?
I'm nervous about screwing up my host debian installation, so when I got the error message, did some research but found nothing meaningful. I don't want to end up having to reinstall my Debian 8 (base OS) ... again!
View 8 Replies
View Related
Feb 7, 2010
I am implementing a strategy to organize my data among the several machines I work with and thought that getting some ISO images out of it could be a good idea because that way data would be 'read only' thus allowing for easier synchronization.
At first I thought of using the "dd" command to create the ISO out of a directory, but it fails code...
So, I have two questions:
Is the ISO 'format' capable of storing complex directory structures with long filenames (pretty much as any Linux filesystem does), or are there some inherent limitations?
Supposing the ISO format is not constrained, which command would allow me to create an ISO file out of a directory?
View 5 Replies
View Related
Jun 9, 2010
How do I save it as a jpg somewhere on my puter using a script? I can wget, but it gets saved as a .evif, which is totally useless. I can right-click on the image in a browser and use the context menu to save it as a jpg, but I want this process automated. How can I DL this image and save it as a jpg? GIMP's CL options don't include the capacity to save/convert this image, though it's possible from teh GUI. ImageMagick won't read this dynamic URL. What do I do?
View 3 Replies
View Related
Oct 23, 2010
I have created an image out of 2 other images using the "montage" command. I want to then print it using "lpr". I view the output from montage in XV and it looks fine however when I try to print, it prints the bottom half of the first image then the second and then the bottom half again.
E.g., imagine this:
Code:
<< end of top image
<< end of bottom image
The above is how it looks in xv however when printed, it looks like:
Code:
-------
-------
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
//////////////////
//////////////////
-------
-------
I really can't understand it, I've tried opening and saving the image again but it still prints as above. I don't know if montage is outputting it incorrectly or something, however it looks right on the screen!
View 3 Replies
View Related
Apr 18, 2010
I'm getting ready to deploy a Ubuntu server in a remote location. I am deathly afraid of something going horribly wrong though, so what I'd like to do is be able to somehow image the system when it's working, and be able to restore that remotely via SSH if things go to hell. My first thoughts were that I could partition the hard drive, and install two separate instances of Ubuntu. One would be the server in it's working state, and the other one would be a separate instance of Ubuntu that I could boot into to restore an image (if that's possible).
1. If I had two separate instances of Ubuntu on two separate partitions, and I was currently booted into one of them, would it be possible to tell the Ubuntu server to reboot and boot into the other instance of Ubuntu on the other partition over SSH? (SSH is the only form of access I will have to the server)
2. Is there a better way to remotely restore a server than what I outlined above?
3. Also, I've used the dd command to make backups before, but it copies an entire hard drive byte for byte. Is there an argument I can tag on, or another command to use altogether that will only copy the bits that are being used?
View 5 Replies
View Related
Feb 26, 2010
i was wondering if it is possible too use the DD command to make an image file of my blackberry 8330?i need it of the onboard memory and not the external memory card.
View 1 Replies
View Related
Oct 6, 2010
when i use rsync command to backup my image file , it shows the following error message.
bash: line 1: /usr/bin/rsync: Argument list too long
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: remote command could not be run (code 126) at io.c(463) [receiver=2.6.8]
The command which i used is rsync -avrl -e ssh cms@server:/data/cms/data/images/* /mnt/Backup/Intranet_cms_backup/images
View 7 Replies
View Related
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
May 26, 2010
I have a large list of folders that I want to compress using tar.the script I want to right is to travers all the folders and for each I would tar the contents to a tar file with the same name of that folder. and the it should be stored inside the same forlder.
View 6 Replies
View Related
Apr 28, 2011
Can save an image from clipboard into file using command line?
may be image magic?
View 3 Replies
View Related
Feb 25, 2010
I do computer forensics here in Afghanistan and I am trying to keep a clean image of a dual bootable hard drive. Here is what I try to do...
1. Boot into UbuntuLiveCD
2. I run "sudo dd if=/dev/zero of=/dev/sda conv=sync,notrunc bs=64K" to wipe the drive with all zeros.
3. I then install Windows by creating a new partician about 50GB.
4. I then install Linux by creating a partician in ext4 mounting it at '/' in addition I create a swap partician.
5. Next configure everything just the way I want it. I install all the drivers and software I need for my windows partician and build out the remaining part of the disc as a "data drive."
6. Then I use "dd" again to try to image my "clean slate" of a system. Remember I am dual booting. I dd the /dev/sda and gzip it.
7. When I go to restore it, I boot from the live CD again and unzip ig and "dd" it back onto /dev/sda.
8. I run fdisk -l and I get:/dev/sda1 * 1 6375 5120000000 7 HPFS/NTFS/dev/sda2 6376 11724 42965842+ 83 Linux/dev/sda3 11725 12453 ...... 82 Linux swap / Solaris.This means to me that it can "understand the file system"
9. But then when I take out the Live boot CD and try to get my "clean slate" machine back, the system goes into Grub Rescue mode with a grub command line "grub rescue>"
10. I tried using the tutorial on Grub2, but...
a. It would not understand the command "linux"
b. When I try to do insmod, it says it doesn't recognize the file system.
View 4 Replies
View Related