---
title: "Discussion on \"JPG To PNG Image Converter Using Python Script\" | Hashnode"
description: "Discussion on \"JPG To PNG Image Converter Using Python Script\". There might be a time when we have a folder containing images in jpg format and we want to convert all the images in png. \nDoing this manually would consume a lot of time. In this article I have written how this can be done in a single command using ..."
url: "https://hashnode.com/posts/jpg-to-png-image-converter-using-python-script/5ff5c3bdfc8177134fbb6cf8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JPG To PNG Image Converter Using Python Script](https://kritikasinghal.hashnode.dev/jpg-to-png-image-converter-using-python-script?utm_source=hashnode&utm_medium=feed)

There might be a time when we have a folder containing images in jpg format and we want to convert all the images in png. Doing this manually would consume a lot of time. In this article I have written how this can be done in a single command using ...

Jan 6, 2021 · 3 min read · kritikasinghal.hashnode.dev  
Updated Jan 24, 2021  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#python](https://hashnode.com/tag/python)
-   [#beginner](https://hashnode.com/tag/beginner)

## Written by

[Kritika Singhal](https://hashnode.com/@kritikasinghal)

@kritikasinghal

  
[View profile](https://hashnode.com/@kritikasinghal)

Learning By Doing

Hey, I am Kritika Singhal. I am a DevOps Engineer and cloud enthusiast.

## Responses 2

Markdown supported · ⌘↵ to post

[Ruth Ikegah](https://hashnode.com/@ikegah_ruth)

[Jan 25, 2021](https://hashnode.com/posts/jpg-to-png-image-converter-using-python-script/5ff5c3bdfc8177134fbb6cf8/comment/600f52799d3cb25c41e0a312)

Hi [Kritika Singhal](https://hashnode.com/@kritikasinghal)Nice article! I got a bug while trying to replicate this. It creates the folder but does not convert the image.

[Kritika Singhal](https://hashnode.com/@kritikasinghal)

[Jan 26, 2021](https://hashnode.com/posts/jpg-to-png-image-converter-using-python-script/5ff5c3bdfc8177134fbb6cf8/comment/600f52799d3cb25c41e0a312#reply-600fa42f9d3cb25c41e0a8c7)

Hi Ruth, thanks for trying out this code 😊. I have rechecked the code and it is working correctly.

Please make sure you have all the required libraries installed and have executed the code in correct way.

If still this doesn't work then feel free to contact me on twitter

[Emilie Shin](https://hashnode.com/@bearcub3)

[Jan 13, 2021](https://hashnode.com/posts/jpg-to-png-image-converter-using-python-script/5ff5c3bdfc8177134fbb6cf8/comment/5fff2094b00f7510ee95987b)

your content is making me wonder how the conversion actually take place under the hood! maybe need to investigate in the difference between the two formats and what the python library actually do. inspirational! ;-)
