Converting from JPG to PNG is easy enough.
Given an input file "$i"
all you need is:
/usr/bin/sips -s format png "${i}" --out "${i%jpg}png"
That will create a PNG with the same filename as the JPG except the jpg
will be changed to png
obviously.
Then it's just a matter of making a Keyboard Maestro macro for Finder to process the selected images.