def actions_image_optimization(sender, instance, created, **kwargs): # if instance.image_for_card: # image = ImageOptimizer(instance.image_for_card.path) # image.optimizeAndSaveImg() if instance.image_for_detail: image = ImageOptimizer(instance.image_for_detail.path) image.optimizeAndSaveImg()
def images_optimization(sender, instance, created, **kwargs): if instance.genplan: image = ImageOptimizer(instance.genplan.path) image.optimizeAndSaveImg() if instance.main_image: image = ImageOptimizer(instance.main_image.path) image.optimizeAndSaveImg()
def image_optimization(sender, instance, created, **kwargs): if instance.image: image = ImageOptimizer(instance.image.path) image.optimizeAndSaveImg()
def image_optimization(sender, instance, created, **kwargs): if instance.image_planning: image = ImageOptimizer(instance.image_planning.path) image.optimizeAndSaveImg() if instance.image_planning3d: image = ImageOptimizer(instance.image_planning3d.path) image.optimizeAndSaveImg() if instance.image_floor: image = ImageOptimizer(instance.image_floor.path) image.optimizeAndSaveImg() if instance.image_section: image = ImageOptimizer(instance.image_section.path) image.optimizeAndSaveImg() if instance.image_section_in_object: image = ImageOptimizer(instance.image_section_in_object.path) image.optimizeAndSaveImg() if instance.image_genplan: image = ImageOptimizer(instance.image_genplan.path) image.optimizeAndSaveImg()
def actions_image_optimization(sender, instance, created, **kwargs): if instance.logo: image = ImageOptimizer(instance.logo.path) image.optimizeAndSaveImg()