From f9e0fe6e60d8a070f0b47c37d7ec382a3c9f0e55 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 15 Nov 2019 15:15:50 -0500 Subject: [PATCH] Updated README and removed the redunant for loop --- README.md | 3 ++- convert.py | 3 +-- full-res-files/DELETE-ME.txt | 0 high-res/DELETE-ME.txt | 0 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 full-res-files/DELETE-ME.txt delete mode 100644 high-res/DELETE-ME.txt diff --git a/README.md b/README.md index 6fb66f1..569a831 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,5 @@ I'm a photographer. I regularly need to save jpegs for web. This is a python scr 1. Run `convert.py` * This will download ImageMagick into the imagemagick folder. - * This convert files into the web-files folder. \ No newline at end of file + * This will convert files into the web-files folder. + * This will convert files into the high-res folder for customer delivery. \ No newline at end of file diff --git a/convert.py b/convert.py index 5d081b7..6b68664 100644 --- a/convert.py +++ b/convert.py @@ -24,10 +24,9 @@ def convertFilesInInput(): print("Converting " + filename + " for web.") convertImage("1500","50",filename,getOutputPath()) - for filename in os.listdir(inputFolder): print("Converting " + filename + " for delivery.") # 6000x can give you a 20 inch image for print. Printing is 300dpi so 6000px/300dpi = 20inch, but if someone wants a 20x16 your smaller edge needs to be 4800px - convertImage("8000","50",filename,getOutputPathHighRes()) + convertImage("8000","50",filename,getOutputPathHighRes()) def convertImage(pixels,quality,filename,outputPath): #os.path.splitext(filename)[0] gets rid of file extension if you want a different extension diff --git a/full-res-files/DELETE-ME.txt b/full-res-files/DELETE-ME.txt deleted file mode 100644 index e69de29..0000000 diff --git a/high-res/DELETE-ME.txt b/high-res/DELETE-ME.txt deleted file mode 100644 index e69de29..0000000