mirror of
				https://github.com/KevinMidboe/leifs-image-processor.git
				synced 2025-10-29 17:50:20 +00:00 
			
		
		
		
	Response from processing image updated to include the size variations per image.
This commit is contained in:
		| @@ -35,7 +35,10 @@ def processImage(file, outputPath=None): | ||||
|         filename = generateFilename(fileID, size['name'], outputPath) | ||||
|         temp.save(filename) | ||||
|      | ||||
|     return '.'.join([fileID, OUTPUT_EXTENSION]) | ||||
|     return { | ||||
|       'filename': '.'.join([fileID, OUTPUT_EXTENSION]), | ||||
|       'variations': list(map(lambda vairation: vairation['name'], OUTPUT_SIZES)) | ||||
|     } | ||||
|  | ||||
| def generateFilename(fileID, modifier, outputPath): | ||||
|     filename = "{}_{}.{}".format(fileID, modifier, OUTPUT_EXTENSION) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user