Tag Info

Hot answers tagged

13

It's not clear what you mean by "quality loss". That could mean a lot of different things. Could you post some samples to illustrate? Perhaps cut the same section out of the poor quality and good quality versions (as a PNG to avoid further quality loss). Perhaps you need to use -density to do the conversion at a higher dpi: convert -density 300 file.pdf ...


10

I am almost certain that what you perceive as a loss of quality in the PDF, is just an effect of your PDF viewer's anti-aliasing feature. If you use evince to view the PDF, you can see the anti-aliasing feature automatically switched off at a certain zoom (300% in my quick test). You can see that vividly when you keep zooming in - you will notice that at ...


9

I'd agree with the accepted answer of -geometry +0+0 to remove extra tile space, and I'd add -mode Concatenate (under certain conditions). Also, once you have differing sizes with montage, it gets a bit difficult to discern between what is "tile background" (tile space) vs "frame" and "border" - I lose track myself often, so here is a small test case with ...


8

If I understood you correctly, you want one animated gif that looks like 5 animated gifs playing in parallel, right? Imagemagick can do that (and much more). Probably even in one line of code, but I'll do it in several steps. Lets assume your gifs are called anim1.gif…anim5.gif and are each 100x100 pixels. #Combine anim1.gif and anim2.gif (first row) ...


8

Digikam Add all the photos to your collection. In the menu, select “Tools / Find duplicates”. This will look for duplicates accross your whole collection. Findimagedupes A command line tool. Pass all the images you want to compare on the command line. Geeqie (formerly gqview) In the menu, select “File / Find duplicate”. Drag and drop image files do the ...


8

The other ExifTool suggestions are great if you want to remove or change specific sections. But if you want to just remove all of the metadata completely, use this (from the man page): exiftool -all= dst.jpg Delete all meta information from an image. You could also use jhead, with the -de flag: -de Delete the Exif header entirely. ...


7

Requirements ImageMagick Type the follow line to commmand prompt for intall ImageMagick: sudo apt-get install imagemagick Convert from jpegs to PDF: Go to the work directory (directory of jpegs): cd work/directory/path Convert the JPG files to PDF: convert *.jpg foo.pdf source : http://bitprison.net/jpg_to_pdf


7

Sounds like a job for the montage command. montage -tile 1 -geometry +0+0 *.jpg ../big.jpg


6

You want all your photos to be 6x4 with a width of 1024, right? That means they should be 683 pixels high. If that is correct, what you're looking for is ... convert <input_image> -resize 1024x683^ -gravity center -extent 1024x683 <output_image> ... where you would replace with the filename of the image you want to resize, and with the ...


6

Try something like this: montage file1.jpg file2.jpg -geometry +0+0 -background none output.jpg This will make the border between images as small as possible and whatever is there will be transparent. To see a demo of the difference using builtin images, try these and compare: $ montage rose: -resize 100x60 rose: -geometry +0+0 -background none ...


6

There are many more resize options in imagemagick. -scale looks like what you need. Also, do not use JPEG for pixel-perfect "miniatures"; use PNG instead (or if impossible, GIF). JPEG is designed for photos and uses lossy compression, resulting in distortion clearly noticeable after scaling your provided JPEG sample. This article on image scaling might ...


5

You can start like this: for i in "$@"; do dst="${i%pdf}jpg" convert "$i" -resize 612x792 "$dst" convert "$i" -resize 255x330 "${i%.pdf}_thump.jpg" done And call it like $ bash my_script.sh *.pdf For renaming you can use another script. I don't understand your example .csv-file. Does is contain 3 lines for 3 files? Ok, this is the case. You can ...


5

I'd use convert or mogrify from the ImageMagick suite. convert -resize 100x50 1.png 2.png (mogrify doesn't take the output file name and modifies the file in place).


4

ImageMagick provides a super-nice set of command-line tools for image manipulation. Check it out at http://www.imagemagick.org/.


4

Try using the -density option. The default resolution is 72 dots per inch. So try something like -density 300. For reference see -density in the ImageMagick command-line options documentation.


4

Use exiftool instead: exiftool -ext '' '-filename<%f_${ImageSize}.${FileType}' . Would rename all the images in the current directory (.).


4

Google already provided the tool to decode webp images, (In the libwebp package, your uploaed file works on Arch) dwebp file.webp -o abc.jpg For the encoding tool, check the cwebp command. And you might consider use this online tool.


3

According to my (interpretation of, at least) manpages, the -fs option on ppmquant doesn't take an argument; the ncolors argument is separate. Separate the -fs 223. Not sure whether that will take care of the magic number error too.


3

Try exiftool (which is written in perl): https://owl.phy.queensu.ca/~phil/exiftool/ usage: exiftool -all= image.jpg


3

For commands with little output and short lines you can do that easily with a combination of a2ps, ghostscript and imagemagick: Here the output of the command ls is used as an example. ls | a2ps -=book -B -q --medium=A4dj --borders=no -o out1.ps && gs \ -sDEVICE=png256 \ -dNOPAUSE -dBATCH -dSAFER \ -dTextAlphaBits=4 -q \ ...


3

No time for a full solution but you could use ImageMagick and it's crop fuctionality. http://www.imagemagick.org/Usage/crop/ Example $ convert rose: -crop 40x30-10-10 crop_tl.gif original:               cropped:


3

I guess if you've never used gimp it could take you five or ten minutes to get comfortable using the "crop" tool: Or it might not take that long. Gimp should be available on any linux distro. There's some documentation here. You can load a .jpg, but if you want to save it that way you have to choose "Export As" from the file menu.


3

ImageMagick has a number of programs in the package. One of them, display, will render an image on the screen and provide easy access to a lot of the Imagemagick suite. $ display your_original_image.jpg Then left-mouse click in display window to bring up the ImageMagick command window. To crop the image, left-mouse click on "Transform" and then select ...


3

Use Imagemagick for this. Read the man page for correct use but it should work by passing parameters, something like convert 1.png -resize 50x100 1-resized.png


3

The answers you have gotten so far will work in this particular case because your source and target images have the same aspect ratio. However, if you want to change to an arbitrary size, they will fail: $ file foo.png foo.png: PNG image data, 1000 x 500, 8-bit/color RGB, non-interlaced $ convert -resize 100x50 foo.png bar.png $ file bar.png bar.png: PNG ...


2

I know that question is little old, but I wrote script that is using JRW solution. Script is splitting image file into series of images of given size: #!/bin/bash FILE=$1 FILENOEXT=${FILE%.*} SLICEWIDTH=$2 WIDTH=`file $FILE | cut -f5 -d" "` NUMOFSLICES=`echo "scale=2; $WIDTH/$SLICEWIDTH+1" | bc` for i in `seq $NUMOFSLICES` do LAST=$(($SLICEWIDTH * $i - ...


2

I've never tried pdf2xml, but browsing through its files on SourceForge, I found vec2svg-2.py, which appears to be a Python script to convert .vec files to .svg. You should have no difficulty converting SVG to whatever format you need. python vec2svg-2.py -i file.vec -o file.svg


2

I think stopmotion is the technique you are looking for. After a short search I found this application, maybe this might help you. But I guess there are several other similar tools around.


2

You may be able to do something with this.. It allows you to collect images (with two mouse clicks per image) in a temp dir, scriptname -c... and then shows the images in a light-weight image viewer which is eaisly navigable via the cursor keys; scriptname -s It will always start the display with the most recent image. If you really want to limiit it to 5, ...


2

Beside OCR-Software, which was my first idea too, I think of libaa1 (ascii-art) and related programs. There is even a program to watch TV in ascii-art, ttv, so there will be an image transforming program, I'm pretty sure. And I remember a program in the ImageMagick package, where you can take a photograph of a flipchart, and it performs ocr on it. ...



Only top voted, non community-wiki answers of a minimum length are eligible