Tag Info

Hot answers tagged

15

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 ...


9

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) ...


9

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. ...


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 ...


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


7

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 ...


6

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.


6

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.


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

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


4

Do not parse ls and the ls is not required here. Furthermore, you should quote your variables in case they contain spaces. for file in *.JPG; do convert -rotate 90 "$file" rotated_"$file" done


4

There are quite a few issues with your code. First of all, you are parsing ls which is a Bad Idea. You also need to refer to the variable as $file as you point out and you should also quote it so it won't break on spaces. You are declaring num but it is never used. A safer way would be: find /tmp/p/ -name "DSC*.JPG" | while read file; do convert "$file" ...


4

A simple method using BASHs' PE( Parameter Expansion) for f in /tmp/p/DSC*.JPG; do convert -rotate 90 "$f" "${f%.JPG}"_converted.JPG; done


4

Gimp I would see if you can open the .cdr files with Gimp. According to this page Gimp supports editing these files. Gimp should be available in the Debian repos, look for the name gimp. I downloaded this sample image, cup.cdr (uncompressed 18K), from this Corel website. However I wasn't able to open it, there might be a plugin for Gimp. Inkscape The ...


4

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.


4

Using ImageMagick: $ convert -crop 800x1000 image.png cropped_%d.png Will create a sequence of files named cropped_1.png, cropped_2.png, and so on. References Tile Cropping, sub-dividing one image into multiple images ImageMagick v6 Examples -- Cutting and Bordering


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

If you install the exiftool from CPAN you can run the following script, assuming that all your files are in a directory called "all" #!/bin/sh for i in all/*; do SPEC=`exiftool -t -s -d "%Y-%m-%d %H:%M:%S" -CreateDate "$i"` read X DATE <<<${SPEC} echo "$i:$DATE" touch -d "$DATE" "$i" done


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

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



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