Updated README and removed the redunant for loop

This commit is contained in:
2019-11-15 15:17:49 -05:00
parent 478b8be74f
commit 915472e9a7
2 changed files with 3 additions and 3 deletions

View File

@@ -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