Tag Info

Hot answers tagged

12

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


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


7

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


6

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


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

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


5

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


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


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

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

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


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


2

I managed to solve my original problem using a gs solution based on the answer to this question on superuser.com, found following a link within another Q/A refered to in @Stone's answer to the present question. Here's a way it can be done, put into a script: #!/bin/bash ################################################################ # Make two portrait A4 ...


2

Use PDFjam to do this. See: http://superuser.com/questions/246092/how-to-convert-a-1-page-pdf-to-a-2-page-per-sheet-pdf


2

ROWS="4"; montage -geometry 2550 -tile 1x$ROWS *.jpg output.jpg geometry -> you need to know the original picture width, or at least give this a good value so the quality could be enough tile -> how many "columns x rows" will the output have? (from the original jpg files) - $ROWS could be calculated with "ls -1 *.jpg | wc -l" if one folder contains all ...


2

My answer starts where ixtmixilix comment ends and assumes that you have installed ImageMagick. To get a pdf with the right resolution/density you need the margin/squares in Pixels, call it p. You can get this via gimp, inkscape, any other reasonable image editor/viewer or indirectly by the dpi of the used scanner multiplied by the real distance in inch. ...


2

The command convert Image.png -resize 620x797 -quality 1 Image.jpg meets your claims. However PNG is lossless compression and JPG is lossy, so you can compress as much as you want, but the result may not meet your needs. How to figure it out: 450 dot per inch means 450 pixel per 25.4 mm to get the width: 450*35/25.4 = 620 to get the height: 450*45/25.4 ...


1

Here's a variant of un2up, which uses Python with the pyPdf library. Note that you need at least version 1.13 (prior versions did not support scaling). Untested. #!/usr/bin/env python import copy, math, sys from pyPdf import PdfFileWriter, PdfFileReader input = PdfFileReader(sys.stdin) output = PdfFileWriter() for p in [input.getPage(i) for i in ...


1

I haven't used it myself but the gimp has scripting tools available which are cli based, script-Fu I think it's called. It may be more for filter application rather than image generation unfortunately. http://docs.gimp.org/en/gimp-using-script-fu-tutorial.html Is a script-Fu guide http://www.gimp.org/tutorials/Basic_Batch/ Is about using gimp from the ...


1

Save a python script like this: #!/usr/bin/python from PIL import Image, ImageFont, ImageDraw import sys im = Image.new('CMYK', (1000,1000), (0, 0, 0, 255)) f = ImageFont.load_default() d = ImageDraw.Draw(im) d.text((500, 500), sys.argv[1], font = f, fill = (0, 0, 0, 0)) del d im.save(sys.argv[2]) Dependencies are python and the python imaging library. ...


1

You should look at some opensource tools like exiftool. There is a lot of option (for exif, xmp, iptc). exiftool -overwrite_original \ -xmp:Creator='votre nom' \ -xmp:WebStatement='http://creativecommons.org/licenses/by-nc-nd/3.0/' \ -xmp:Rights='Copyright votre nom. This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative ...


1

Perhaps one of these applications are to your liking: 2D-animation: synfigstudio animata ktoon pencilanimation Stop motion: frameworks stopmotion toonloop Friendly programming oriented towards graphics: processing They are all readily available in Arch Linux.



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