Software :: Imagemagick - Height-and-width Not Deterministic When Crop An Png File
Sep 8, 2009
After spending a few hours and having some little sleep, I am very puzzled and disturbed by the fact that new-new-02-5-1.png does not have the intended 818x788. It must have to do with cropping with nonzero offsets.
I am trying to write commands that extracts the height and width of a video file via ffmpeg. I have the following working so far:
This gives the following answer in widthxheight format with an extra , 720x480,
How can I instead run 2 separate commands that give me height and width separately? I want some command to give me 720 and another command to give me 480 and I dont need the x or the ,
If you need to know this is what ffmpeg -i videofile.mov 2>&1 gives as output
I am trying to sort image files I've assembled for document production, and I need to be able to see the height and width of the images without having to open them one by one. Is there a way to view an image's physical size in the folder window?
How do I find out how many characters fit into a terminal window horizontally and how many lines the terminal window is high (i.e. how many rows and columns are visible - the width and height)? I am using c++ and Linux Mint 8 - Gnome.
A couple of days I started using latex and have still one question about the table width. My table is too wide for a page. How can I adjust it so that it fits on the full width of a page? Can I use a command or do I have to specify each column widths by hand?
My table looks like this;
I did try several commands likeextwidth, esizebox, setlength but didn't found the solution yet.
I use ioctl to get the cosole window size (the SSH window).
I use the following code:
When I debug on linux pc, it gives me the correct window width. But after I try it on router (this is my enventual place where my code shall run), ioctl always give me 0 width, that is, numberOfColumnsOfTerminalWindow == 0. but the returnValue is 0 which means that the function call succeeds.
How to install ImageMagick on slackware? I can't run ./configure after I uncompress the file. I was trying to install a software and it says Imagemagick is not installed but when if I run identify -version there is some kind of version displayed but I'm not sure if it is installed.
I would like to know how to make the file browser column width smaller than I can normally adjust with the mouse. I have minimized with the mouse, it is still too wide. Is there a minimum column width setting I am supposed to specify somewhere?
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?
The screen info says it is 1280*1024*60Hz.I put this into the nouvou monitors hardware control centre. The screen is too stretched in the vertical. Some icons are cut off at the top.The screen is a V7 videoseven.For some reason the menu controls on the screen only work on the non screen movement icons. I cannot access them .how to get the vertical height corrected? If I have I will go back to the NV proprietary drivers but I would prefer not to do so.
I have the ETOPO1 global relief model, [URL]...in georeferenced TIFF format. What I want to do is crop out a section (specifically the area of New Zealand's continental shelf), and then reproject that section into a different projection (the New Zealand Continental Shelf Lambert Conformal 2000 (NZCS2000) projection).
Matters are complicated somewhat by the fact that the region in question crosses the 180 degree longitude line. I've tried googling, reading the GRASS manual, playing around in QGIS, and even have the book "Desktop GIS" by Gary E. Sherman. But the seemingly simple task of cropping a raster DEM has defeated me. I cannot do it in ordinary imaging software, because the bits per pixel of the raster is too high; programs like the GIMP would grossly quantise the relief.
I am using Open Office 3.1 and I am working on a presentation, that I have to give in march and I am wondering how to crop pictures after pasting them into the presentation. Could not find any way to do this yet.
I've got a little video and I want to crop it so that a part of it falls away. I installed and tried Openshot, Kino, Pitivi and Kdenlive, but I can't seem to find a way to crop my video. Isn't there any way to crop videos in Ubuntu, or am I just blind and overlooking the function?
I want to crop a postscript poster. it is an A0 size, and I want to crop it into exactly four pieces to print on four A2 pages, pack them in my bag, and go to the conference (actually a long trip). Is there a way to use terminal, to crop this file? I rather use terminal instead of Gimp or other graphical packages.
I reduced my system font sizes from default 10 down to 8, but I want to also reduce the height of the Main Menu correspondingly. I've searched the forums and Google, but can't find a method for doing this. See the screenshots - both menu heights are exactly the same, but if I reduce the font size, I'd like the menu to shrink too.
I have a bunch of images I took of the same thing, but I was holding the camera, so each one moves a little bit. Is there some way to crop the images so that the focal point doesn't move between pictures?I've done some searching but I haven't had much luck finding anything.
Before migrating to Fedora/linux, during my window days, one of my programme of choice was MS word. regardless of all it's bugs, it did all i needed it to do (eventually). Now in Fedora I have Open Office. As far as word processing it's fine. But when it comes to inserting Images I hit a brick wall.
when it cam to making bingo cards, I could choose multiple images and resize them with one click, move them all together and crop them on the fly. Open Office doesn't do that. My question is: What other option are there in the fedora world that could help me.
MS office 2003 came with a prgram called "Microsoft Office Photo Manager". It was a surprisingly lightweight application that could adjust color, crop and resize photos. Very simple interface, easy to use. Perfect for simple modifications to digital photos. Is there anything like this in linux? Gimp is certainly not it. Office Drawing and F-Spot photomanager are not it either.
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?
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?
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"
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.
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?
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:
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?
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...
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?
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..
I have ImageMagick 6.2.8 installed on my CentOS 5.3 (64bit) system. I want to upgrade it to a newer version, because it has nice new features I need to use in a PHP script I write for a website. I tried yum, but it did not help, it didn't have a newer version of ImageMagick. Maybe I have to use some other repositories (I use CentOS and RPMFprge repositories only) or use them some other way. I ended up with downloading ImageMagick 6.5.4 RPM from ImageMagick website (it was marked as Fedora package, there's no one for CentOS there) and tried to install it. I've got some absent dependencies, but installed them all, most from the CentOS and RPMForge repositories. Some were absent from those repositories (like jasper-libs and libtool-ltdl) and I installed them from other sources.Finally, when I tried to install ImageMagick I got this error:
-bash-3.2# rpm -Uvh --test ImageMagick-6.5.4-10.x86_64.rpm error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by ImageMagick-6.5.4-10.x86_64 rpmlib(PayloadIsXz) <= 5.2-1 is needed by ImageMagick-6.5.4-10.x86_64
I tried to install it using --nodeps, but got some "cpio: Bad magic" error. So, as far as I understand, I need to upgrade "rpm" package itself to make it working. Correct me if I'm wrong here. The current version of rpm is: bash-3.2# rpm --version RPM version 4.4.2.3
If I really have to upgrade rpm, then I'm not sure what to do. I have few questions:
1) First of all, what version of "rpm" package do I need? Because I don't want any conflicts. The latest version, as I can see on rpm.org, is 4.7.1. Will it work with CentOS 5.3?
2) Where do I get the right rpm for the rpm upgrade? If it's available at all. Rpm.org, as far as I can see, got source only, and I'm not sure CentOS uses their version of rpm. Where can I get the right rpm package, preferably as a plain .rpm file so I don't need to build it myself?
3) And after all, the most important. Wouldn't my system break at all if I upgrade rpm? I don't want to screw things up and end up with a broken system.