Sin categoría

Image

COMMAND NCONVERT

Nconvert command is a command with many options, you can do many things very interesting here‘ll start a tutorial and ire increasingly añadiendio things.

This command is a command that does is modify images, but good has plenty of utilities, filters etc ..

And you will say to use this command if mtpaint programs like the gimp and a lot more publishers who already do, for the simple answers are as follows.
 
1) Imagine you want to convert or apply a filter or anything else to 450 images per say a figure found in a directory, make one by one in mtpaint or another editor is a pain, because with a single line of command nconvert vary the 450 files at once and very quickie.
 
2) If we vary or 450 images we want but each with a different filter or anything else hariamos a script with 450 lines that can be done very easy to copy and paste, and the script would take care of it.
 
3) If we want to apply a filter or multiple filters on one image or all images you want, but at the same time as any image editor as mtpaint or another, you would have to do first apply a filter and then another and so on with a command line apply all at once.
 
Well now see What a beautiful and endless combinations of multiple obtainable by combining filters and others.
 
Hope you hook this command that is a command for the little that deals with size, of many things he does.We can get off NOCONVERT of:
 
 And once we put it down in the directory /usr /binWell let’s do this, if from the terminal you type the following command:
 
# nconvert -help
 
We obtain the support of all nconvert command, if we want to save to a file, then better locate and other options can write the following order:
 
# nconvert  > /mnt/home/help_nconvert.txt
 
Well let’s go see some examples of what we can do with nconvert, we will work with an image in this case halle berry
 
 
 

This what I would do is that all images will grow into jpg png files but these would come out of the original negative. * .jpg is the filter for all the images directory, if they are png * .png, * .tif, etc Well greetings and see you in the next post .. I hope you liked it.This what I would do is that all images will grow into jpg png files but these would come out of the original negative. * .jpg is the filter for all the images directory, if they are png * .png, * .tif, etc Well greetings and see you in the next post .. I hope you liked it.

 
Good starting from this we call good img1.jpg will open a terminal in the directory where the image and type the following command image.
 
nconvert -out png -embossmore img1.jpg
What we are telling us is that you create output image file with extension png and to apply the filter -embossmore and the result is a img1.png file if opened with the viewfinder we get this:
 
 

 
Well the number of combinations are almost endless, let the other.

nconvert -out png -embossmore -binary floyd img1.jpg

With this image we apply two filters at once -embossmore and -binary, remember that we can apply all
we want both.


with this we get the following:
 
 
 

 
 
  Another plus:
nconvert -out png -embossmore -swirl 80 img1.jpg

  Good for no more images you put it checks everything you can do typing.
 
nconvert -help > /mnt/home/nconvert.txt
In this nconvert.txt file you will find all the possibilities of e nconvert, or left a few here that I‘ve tried:

nconvert -out png -sepia 80 img1.jpg

nconvert -out png -solarize 120 i

mg1.jpg

nconvert -out png -rotate 20 img1.jpg
nconvert -out png -sepia 80 img1.jpg
nconvert -out png -resize 300 148 img1.jpg
nconvert -out png -mosaic 30 img1.jpg
nconvert -out png -negate img1.jpg
nconvert -out png -medianb 5 img1.jpg
nconvert -out png -medianb 11 img1.jpg

nconvert -out png -levels 30 20 img1.jpg
nconvert -out png -levels 50 20 img1.jpg
nconvert -out png -levels 100 100 img1.jpg
nconvert -out png -lents 50 img1.jpg
nconvert -out png -grey 4

img1.jpg
nconvert -out png -grey 32 img1.jpg

Well I’ll put many more curious and combinations thereof encourage people to be putting a lot more and try.Good one last thing for now if what you want is to apply the same filter to all jpg images from a directory so you would have to write a Comado:
 
nconvert -out png -negate *.jpg
This what I would do is that all images will grow into jpg png files but these would come out of the original negative. * .jpg is the filter for all the images directory, if they are png * .png, * .tif, etc Well greetings and see you in the next post .. I hope you liked it.
 

 


Create animated gif with gifsicle

The gifside program helps to create animated gif or animated remove the frame or images that compose gif ..

So if for example we have a series of images or frames that have numbered imag0.gif imag1.gif ………… imag9.gif imag10.gif

If we want to create animated what we do on command line and will always have to be of course in the directory where you are a gif images. create a gif .

gifsicle –loop –delay 10 imag0.gif imag1.gif …….imag10.gif  > anima.gif

create a gif anima.gif the images that contain it.

-loop Makes it the gif is repeated indefinitely.

-delay 10 causes a delay of 10 if we lowered it will be faster and if we go will be slower (this issue)

This animation will move very quickly if you do not specify a delay, the display of web pages frames run as fast as you can can do it slower creating pauses 0.5 seconds between images:

 gifsicle –loop –delay 50 imag0.gif imag1.gif …….imag10.gif  > anima.gif

# gifsicle –explode anim.gif

 
By this we do is to get us all frame or picture that contains animated gif gif .. in the directory we will imag0.gif imag1.gif and thus etc ..gisicle Other examples would be:
gifsicle anim.gif ‘#0′ > primerframe.gif
What this does is to extract the first frame of an animated gif.
gifsicle anim.gif –replace ‘0#’ new.gif

replaced in the lively anim.gif the first frame or image with a new image gif.

gifsicle -b -color = 4 anim.gif changes the color of animated gif . There are up to 6 colors.

If we want the sequence to run only 3 times in a row we can use -loopcount:

% gifsicle -d 50 –loop=3 a.gif b.gif c.gif d.gif > anim.gif

Another way to create an animated gif is trough the ffmpeg command, you can create an animated from a video we do with our camera gif, also can create your personalized videos to send them a postcard or anything else to our friends.

The way to create it in the example with this video is only 194K

http://www.mediafire.com/watch/qguxbrbawgjd5or/1.mp4

And once we dropped open the terminal and run in the same directory where this file is the command.

ffmpeg -i 1.mp4 -pix_fmt rgb24 1 gif

With this we have a gif output will be as follows:

 

 

 

 

 

 

Well let’s create an animated from a still image and using the command nconvert can see your information and download it in gif:

*************  AQUI PONER ENLACE A PAGINA NCONVERT EN INGLES**************

From the image as we see below:

 

 

 

 

 

 

 

 

 

 

 

 

Create the following script with a text editor, based on the nconvert command.
#!/bin/sh
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 1 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 2 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 3 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 4 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 5 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 6 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 7 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 8 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 9 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 10 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 11 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 12 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 13 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 14 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 15 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 16 1.jpg
  gifsicle --loop --delay 10 1.gif 1_1.gif 1_2.gif 1_3.gif 1_4.gif 1_5.gif 1_6.gif 1_7.gif 1_8.gif 1_9.gif 1_10.gif 1_11.gif 1_12.gif 1_13.gif 1_14.gif 1_15.gif 1_16.gif -o anima.gif

If we name the script as make_gif.sh, and execute it in the directory where s is the only image file 1.jpg, we created a lot of pictures with solarize filter, which ultimately are packaged within a anima.gif file called.

If you run this file seems the picture below.

 

 

 

 

 

 

 

Well there are lots of options within the command gifsicle but this I think are most important to create an animated gif and to remove images or frames of one.

 


Puppy linux for electronic

If you are interested in using an operating system like Linux for the field of electronics, maybe this blog will be interesting.
I use Puppy distribution to install programs that have been adapted to run on this system properly for me and others.
Although the programs are adapted to run on Puppy Linux here you will find interesting information that is equally interesting for other distributions such as Debian, Ubuntu and other Linux distributions.
Likewise you will find interesting things in the field of electronics and Linux.
This blog is open to anyone who wants to share information both Linux and in the field of electronics.
The English is not my native language, so I apologize for the mistakes that will surely make.
I hope this blog be interesting and useful to someone.

See … greetings