how to change screenshot jpg to png in mac code example
Example: macbook change screenshot to jpg
defaults write com.apple.screencapture type jpg;killall SystemUIServer
defaults write com.apple.screencapture type jpg;killall SystemUIServer