Bulk sharpen a directory of images with ImageMagick [closed] - imagemagick

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
How can I point imagemagick to a directory of images and use the adaptive sharpen tool to increase the sharpness of all the files in the folder?
Thank you.

This really belongs on SuperUser i think as it relates more to general purpose scripting as opposed to programming... However, if youre *nix you could do the following with a bash script:
for f in /path/to/images/*; \
do echo "Sharpening $f file.." \
&& OUTPUT_FILE="sharpened.`basename $f`" \
&& echo "Output to $OUTPUT_FILE" \
&& convert $f OPTIONS $OUTPUT_FILE; \
done
OPTIONS would be all your options for the convert utility. This also assumes all /path/to/images ONLY contains image files convert can use and not directories or other types of files. You could modify it to be more smart if you wanted but youre on your own for that :-) Additionally, this will put the output files in whatever directory youre in, but you could easily supply a full path as the part of the $OUTPUT_FILE variable.

Similar question has been asked and answered on the ImageMagick forum
How to "Smart Sharpen," adaptive-sharpen not working
I'd like to be able to batch sharpen
my photos, then just work on the ones that need more attention.

ls *.jpg|xargs -n 1 -P #cpus -t command_to_sharpen
There's also a good wrapper for the protocol described here: http://gimpguru.org/Tutorials/SmartSharpening2/ at http://astoryworthtelling.wordpress.com/2011/03/28/smart-sharpening-in-imagemagick/

Related

how to create .tar file on windows OS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am using window OS. I have a folder named as myFolder which contains many files, I need to convert that myFolder to myFolder.tar file. Anyone please suggest how to do it?
If Python is installed, then you can use the tarfile module:
import tarfile
with tarfile.open('myFolder.tar', 'w') as tar:
tar.add('myFolder/')
or if you want a compressed file, then do:
import tarfile
with tarfile.open('myFolder.tar.gz', 'w:gz') as tar:
tar.add('myFolder/')
Links
https://www.scribd.com/doc/521235/Python-Tutorial-tarfile-module
https://docs.python.org/2/library/tarfile.html#examples
I'd get some form of tool (like 7zip) to do this - Google has alternatives and demos. Otherwise you'll need to do something like scp it to a linux server and tar it up via command line.
http://unxutils.sourceforge.net/ has ported the majority of Unix tools to the Win32 API, including tar.

pandoc full-featured online? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is pandoc hosted anywhere for online use with complete functionality? The online pandoc demo lacks PDF output and has a character limit.
Specifically, I'd to convert Markdown to PDF with embedded LaTeX, which offline pandoc does.
I've wrapped Pandoc in a web service. You can try it here https://github.com/mrded/pandoc-as-a-service
Usage:
curl -H "Content-Type: text/markdown" -X POST -d "# hello" http://localhost/html
Yes, on Authorea you can write Markdown, LaTeX (as well as rich text) and convert your content to PDF, Word, or LaTeX. The conversion is performed via an underlying Pandoc process.
If you are OK with the workflow pandoc<->latex->PDF, an alternative is sharelatex. It's open source and can be self-hosted.
Docverter is basically Pandoc as a service.
Yes, on SageMathCloud.
The downside is that you have to create an account to use it.
Once logged in, create a project or open the project in which you want to work.
Create your markdown file file.md. Fill it up with text. Open a terminal and write your pandoc incantation, for example
pandoc file.md -o file.pdf
Push Enter, then go back to fileview and you'll view your converted pdf there.

How can generate thumbnail with timestamp with ffmpeg [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am working with ffmpeg.
I made some thumbnails with ffmpeg command like below.
ffmpeg -ss 600 -i input.mp4 -s 420x270 -f mjpeg vframes 1 output.jpeg
but it is just plane photo.
What I need is some thumbnail like youtube thumbnail which has time positions
on picture.
If you have any challenging ideas, please let me try.
Thanks.
I tried the same, I can tell you this won't work I spend many hours ob implementing that. You need to get the length of the video and take several screenshots e.g. all 3 seconds. Than you can build a stripe and show a small part of the image as the preview.

How to check where my disk-space goes in Ubuntu 10.04 LTS [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
How can i check the size of multiple (all) folders to see where most of my diskspace goes?
Is there a way to know why my diskspace is low without knowing where most storage is held?
To be short: I want to know where my diskspace is located, how can i do that.
This can be a GUI application of commandline commands.. Hope somebody can help..
Thanks in advance.
The command you are looking for is du
To get a graphical overview, install xdu
apt-get install xdu
and use:
du -k <directory> | xdu
That is, to view your entire file system
du -k / | xdu
You have a few options, you could use the du utility (disk usage).
Or you could try invoking ls with the recursive option, a la ls -lR.
These are both commandline.
There is also a graphical disk usage analyzer, (or maybe more than one), which you should be able to locate from the commandline.

Looking for trustworthy JPEG batch converter/resizer [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a batch of PNG files that I need to convert to JPEG. I'm looking for a free trustworthy utility that will give me the most optimal possible JPEGs.
I've found some paid utilities and i HAVE Photoshop, but I want something dedicated that is made for the task and I dont want to accidentally download spy ware.
I'm really surprised not to find this question already on StackOverflow, but please point me in the direction of any similar questions if they exist.
One word: ImageMagick.
Not sure about if it generates the absolute smallest JPEGs you can get, but it's certainly good and would be my first choice.
IrfanView is another option. It has a "Batch Convert/Rename" feature, but it's a Windows-only GUI app.
Imagemagick (http://www.imagemagick.org/script/index.php) can do batch conversion of images.
mogrify -format jpg *.png <= Converts all png files to jpg
The ImageMagick convert utility should do everything you require. There are a number of options which you can use to control the JPEG output quality.

Resources