Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def from_args(cls, args):
gallery = Gallery()
gallery.images = [Image(gallery, image)
for image in sorted(args.full_image_filenames)]
gallery.link_images()
gallery.title = args.title
gallery.destination_path = args.destination_path
gallery.resize = not args.no_resize
gallery.max_image_size = args.max_image_size
gallery.max_thumbnail_size = args.max_thumbnail_size
return gallery