mirror of
https://github.com/KevinMidboe/leifs-image-processor.git
synced 2025-10-29 17:50:20 +00:00
Outputpath is joined with absolute path.
This commit is contained in:
@@ -19,7 +19,11 @@ OUTPUT_SIZES = [
|
|||||||
|
|
||||||
|
|
||||||
def processImage(file, outputPath=None):
|
def processImage(file, outputPath=None):
|
||||||
outputPath = args.output if 'args.output' in globals() else os.path.join(OUTPUT_FALLBACK, 'output')
|
if outputPath == None:
|
||||||
|
outputPath = args.output if 'args.output' in globals() else os.path.join(OUTPUT_FALLBACK, 'output')
|
||||||
|
else:
|
||||||
|
outputPath = os.path.join(OUTPUT_FALLBACK, outputPath)
|
||||||
|
|
||||||
print('outputpath', outputPath)
|
print('outputpath', outputPath)
|
||||||
image = Image.open(file)
|
image = Image.open(file)
|
||||||
fileID = uuid.uuid4().hex
|
fileID = uuid.uuid4().hex
|
||||||
|
|||||||
Reference in New Issue
Block a user