One-Click PNG to JPEG Conversion in Windows Using ImageMagick Command Line Tool

One-Click PNG to JPEG Conversion in Windows Using ImageMagick Command Line Tool


http://www.papertemplate.com 1. Install ImageMagick (Google search)
2. This is the command we want to run (change to your path to ImageMagick: "C:\Program Files\ImageMagick-6.9.0-Q16\convert.exe" "screenshot.png" -resize 480x281^ -set filename:f %t %[filename:f].jpg
3. Start menu, regedit, HKEY_CLASSES_ROOT, find the "(Default)" value for .png – in my case, pngfile
4. Browse to HKEY_CLASSES_ROOT, pngfile (in my case), shell, add Key called "Create Thumbnail" with sub-key "command"
5. Set default to: "C:\Program Files\ImageMagick-6.9.0-Q16\convert.exe" %1 -resize 480x281^ -set filename:file %%t %%[filename:file].jpg
Closed Caption:

hi this is robert plank from paper
template dot com and what I'm going to
show you today is how to in one click
resize and convert any kind of image you
want and so in my case I'll have a lot
of images in a single folder or I just
might save the screen grab from a video
of some kind and if I double-click on
this well this is a huge file right this
is a PNG file and it's 1024 pixels wide
it's a hundred kilobytes and I want to
have this in the more you know
web-friendly sighs and I really want to
be able to right-click and do this
create thumbnail and then in the other
marine its output it and we dragged it
over so it created this 30 caliber i.jpg
that's 480 pixels wide that I can more
easily put onto a webpage so you know if
I have a lot of these or if I just you
know create a thumbnail for video and I
want to size it down really quickly I
don't want to have to always open up
photoshop go rob image resize it down
say okay save it again that kind of time
really adds up one is the one button
solution here is today I'm not to show
you so how the heck do you do it I'm
glad you asked
basically we're going to install a
program called image magic that's magic
with AK and that's a free program that
will basically allow you to run commands
are to toss prompts that will read an
image do some stuff to it like resizing
convert it and then save it back out and
just free run reference the command
we're going to run is what you see right
in front of me here its this image magic
program and we're going to say well I
want to open this file screenshot dot
PNG I want to resize it to this 480 by
281 and this this carrot top hat
character that is going to say if it
needs to be a little bigger that's ok
and this last part says we want to save
it back onto itself but this . jpg
make sure that whatever final output
it's in ends up being a die JK so even
if we open up a bitmap or a gift for a
PNG or whatever because there's a star
jpg it ends up converting it to . jpg so
just this command right here will open
up any image file but we're going to
give it a PNG resize and save it to jpg
so once we know that well basically we
add an entry to our windows registry and
so that wherever right-click on a PNG
file we can add a right-click entry
called create thumbnail that will pass
in the image that we just right-clicked
resize and save it back so a lot of
different steps once you see it all in
place i think that you'll have a lot of
fun and enjoy it so let me delete some
stuff already so we can start from
scratch ok so let me this might help be
a little bit see where I'm going here so
I'm my registry and i'm going to delete
my create thumbnails so starting from
scratch completely let's see what we've
got I've got my jpg i'll delete that got
my PNG i can right click and see there's
no way to create a thumbnail tin 1-click
I'd have to set into photoshop or
paint.net resize saver back so what I
want to do is first of all install our
program called image magic so let me
open up my web browser and then I'll
just search for image Matt chick with AK
at the end imagemagick takes us to
imagemagick dot org click on that and
then i'm on windows so i'll click on
windows and I'll just grab the top one
it shows me download and it has an
installer and it runs it but what's kind
of confusing is that
well there's no it doesn't really give
you a program to run its a you know it's
a command-line kind of deal and so for
me at least the place that this saves it
is in this program files imagemagick ok
so program files imagemagick and then
the file we're going to mess with this
is convert by exe for right click
and go to properties so it's based it's
going to be in this folder so let me
actually bust out a notepad so the file
that we care about is going to be in
this folder and its converts dot exe so
this is what we will pass the image we
want to open and then the things that we
then want to do with it
ok so in this case it will be converted
exe and then screenshot that PNG and
then you attach resize 480 x 2t one with
full carat and then I guess just for
your eyes for a second
dash sets filename f we want just the
beginning part . jpg and so all this
fanciness this first part will resize
this last part will rename it to the
same name we gave it but died jpg and in
the process converted to a dodger a pig
and I think they have somewhere on this
image magic site they'll give you the
the different commands you can run so
yeah I mean you can you can draw stuff
you can do all kinds of things like that
but I mean I'm just gonna let you mess
around this on your own time what I'm
doing today is I'm resizing and i'm
saving as a jpeg and i will put under
this video the exact commands to do and
stuff so I mean we're already half of
the way there right we already have
imagemagick installed and we know what
command we want to run we just need to
add the right-click menu because once
again as of right now if I right click
on this screenshot PNG there is no
there's nothing I can really do from
right from this menu so what I'll do is
that will go to my taskbar so let me
show it over here all right i got my
taskbar and I'll and I'll click on the
start menu and if you don't have this if
you're on Windows 7 you hit windows key
r and it will bring up this run box
right in either way takes to the same
place
type in re g
ebit snot predator but read it
reg edit hey reddit 0 and it will ask
you i want to run it yes I do
alright so what we're looking for is we
want to find the program that runs . PNG
file so we go to this H key classes
routes and has all this . whatever we
find dots PNG's and here somewhere it's
faster browsing the search on this dot
PNG ok and what we're looking for is
this defaults and we want to write down
what this data isn't for me it's PNG
file and probably at the same for you
I think this is just when the windows 8
I think we have one windows 8 on the
default viewer for PNG files so we're
going once again windows key r regedit h
ki classes roots find the dot PNG they
call these folder things here Keys find
the dot PNG key and then we're looking
for PNG file cool so this is what we're
looking for moving forward PNG file one
word all lower case Y continue scrolling
down until I find PNG file so here we go
here's PNG file
ok then we'll pop that open and then we
want to find this thing that says she'll
so basically under the shell now we can
add whatever commands you want so
whenever we right-click a PNG file it'll
we can have you know have sent to any
program we choose so we're at hg classes
roots PNG file shell so we'll
right-click and then we will go new key
and then all say create thumbnail
alright and then inside this Creek
thumbnail right click new key command
cool so now we're just making sure that
we're clicking over in this command key
on the left on the right there's this
default double-click and this will be V
it commands to run and so I remember we
have this this notepad area right here
so most of this is going to say the same
except for this screenshot PNG will
change this to a percent one and this %
1 means that it will run whatever
command we had right click OK and then
the other thing I'm going to do and you
know don't worry about you can just copy
this right there
Adam from below the video is this other
percent stuff I guess there's one here
and one there we need to make it two
percent signs just not confuse it
so basically when we paste in this area
we're going to have to have changes a
two percent signs but don't worry I just
just grab what I think any culture and
that just to be safe so basically when
we're going to make this extra
right-click entry will run this convert
the exe imagemagick program will say
process the file we just right-click
resize and then save it as a JPEG ok so
I'll just highlight all this right click
and copy and then paste it right in
there
click OK and these changes should show
up instantly let's see what find what
happens here so i guess i'll just
minimize that
so here's our PNG file once again
hovering over its 1024 x 600 in size and
i will right click create thumbnail this
is new
click on that and then the other screen
it created this screenshot die jpg and
hover over it and that is been resized
down to 480 wide and it's a JPEG and
everything looks good
going forward so once again to recap
make sure you got it you might have to
watch this video once or twice we
install the program called imagemagick
with a k and what i wanted to do and
this folder might be a little different
for you but I went and found the exact
folder name and we're going to run
convert exe and pass it a PNG file do
this dash resize to resize the file and
do all this other span seems that the
end to save it as that file name
m dot jpg then to add the right-click
menu go its india or windows key r
regedit browse to H key classes route
fine . PNG and see what's stored under
default my case it was PNG file so that
I keep scrolling down the left to find
PNG file and open up the shell sub key
in there and add my own subkey under
shell called create thumbnail then add a
new key called command inside of create
some nail and then I just put in the
command making sure to replace the
screenshot jpg with a % one making sure
that it would pass along the filename we
right clicked and making sure to replace
the two of us are the % in each case
with a double % ok and I'll give you the
the code to paste in your registry just
below this video but this is our plank
from paper template and that is how to
1-click resize and convert your image
file so i'll leave that once again and
so even if you had you know ten twenty a
hundred files in one folder just looked
them all right click create thumbnail
and then boom in literally fractions of
a second half now resize this from 1024
down to 480 and made it a JPG file as
well and so I mean let's just say that
in your case if you didn't want to
convert to jpeg we'll all you have to do
was just don't include the dash set part
i believe and then and if you want to
reset it to a different size just change
the dimensions in the dash resize but
either way install imagemagick here's
the command and i just added a
right-click menu and that is just that
easy just that simple to add a one-click
jpg resizing and converting right-click
menu in Windows paper template calm i'm
robert plank have a fantastic day won't
you

Video Length: 13:11
Uploaded By: Robert Plank
View Count: 11,947

Related Software Products
jpeg To pdf Converter command line
jpeg To pdf Converter command line

Published By:
opoosoft.com

Description:
JPEG To PDF Converter is a perfect convert tool designed to convert JPEG into PDF files, which can helps you convert your photos, drawings, scanned and faxed images into Acrobat PDF documents. BRJPEG To PDF Converter provides powerful functions and Settings include set the page size, orientation, margin and layout of the output PDF document; as well as change its properties, security setting, watermarking, bookmark, and viewer options. The interface of JPEG To PDF Converter has been designed ...


Related Videos
VeryPDF Image to PDF Converter Command Line
VeryPDF Image to PDF Converter Command Line

VeryPDF Image to PDF Converter Command Line is a console interface tool for converting image to PDF. Homaepage: http://www.verypdf.com/app/image-to-p...
Video Length: 01:54
Uploaded By: Heng XUE
View Count: 162

Copyright © 2025, Ivertech. All rights reserved.