copy image from one folder to another in python

Solutions on MaxInterview for copy image from one folder to another in python by the best coders in the world

showing results for - "copy image from one folder to another in python"
Agustina
18 Mar 2016
1import glob
2import shutil
3import os
4
5src_dir = "your/source/dir"
6dst_dir = "your/destination/dir"
7for jpgfile in glob.iglob(os.path.join(src_dir, "*.jpg")):
8    shutil.copy(jpgfile, dst_dir)
9
Meg
13 Oct 2018
1import shutil
2import os
3
4os.chdir('source_image_dir_path')
5dst_dir = "your_destination_dir_path"
6for f in os.listdir():
7    shutil.copy(f, dst_dir)
queries leading to this page
copy image one file path to another pythonwrite images from one folder to another in pythoncopy image to folder pythoncopy all images from one folder to another in pythona python program to copy an image file into foldercopying image from a folder to another with python linuxcopy certain images from one folder to another in pythonpython program to copy an image to another folderhow to copy images from one directory to another in pythoncopy particular image from one folder to another pythonhow to copy image from one file to another pythoncopy one folder to another in pythoncopy image file from one folder to another in pythonpython copy image from one folder to anotherpython copy image to another directoryhow to copy image from one directory to another direcry in pythoncopy file from one directory to another in python oscopy image from one folder to another in pythoncopy all images from one directory to another pythoncopy a one image from one directory to another in pythonpaste two images from different folder pythonpython copy image to another foldercopy image from folder pythonpython script to copy files from one folder to anothercopy an image from one file path to another pythoncopy file from one directory to another pythoncopy to another directoryimages pythonpython copy image from folder to anothercopy some images in a directory pythoncopy 90 25 images in a directory pythonpython include copy image from folder to anothercopy only jpg files pythoncopy file from one folder to another pythonpython copy image inside directorycopy images from two directories python copy file from one path to another in pythoncopy image from another folder in pythoncopying file from one directory to another pythonpython code to copy file from one directory to anothercopy images with exact name from one folder to another in pythonpython copy images from one folder to anotherpython copy a file from one folder to anotherhow to copy certian list of images into another folder pythonpython copying some photos from directoryhow to copy a folder to another place using pythoncopy selected image from one folder to another in pythonpaste two images from different folder pythonpaste images from different folder pythonpython copy different types of images from one folder to anothercopy image from one directory to another in pythoncopy image file from one folder to another in python and not duplicate filescopy all image from one folder and copy into another in pythoncopy image from one folder to another folder in pythoncopy image from one location to another pythonhow to copy image from one folder to another in pythoncopy files from one folder to another using pythoncopy images from 1 folder to another in pythoncopy image to another folder pythoncopying specific images from directory to directory pythoncopy a file from one location to other in pythonpython copy pic to folder commandpython copy image file from one directory to anothercopy images from one folder to another in pythoncopy file to another directory pythoncopy an image to another directory pythoncopying image from a folder to another with python lcopy 80 of images from one directory to another in pythoncopy image from one folder to another in python