mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-02-20 11:09:13 +00:00
moved magick to PIL, fixed quality setting to 100 to match matgick
This commit is contained in:
parent
7857f24260
commit
a0dc5af86f
@ -8,7 +8,7 @@
|
||||
#
|
||||
# For inquiries contact george.drettakis@inria.fr
|
||||
#
|
||||
# xvdp removed magick, it is 3x slower than single threaded PIL for resizing
|
||||
# xvdp removed magick, even single threaded PIL resizes 4X faster
|
||||
|
||||
|
||||
import os
|
||||
@ -106,6 +106,6 @@ if args.resize:
|
||||
logging.info(f"processing image [{j}/{len(files)}] {source_file}")
|
||||
for div in [2,4,8]:
|
||||
destination_file = os.path.join(args.source_path, f"images_{div}", file)
|
||||
im.resize([round(i/div) for i in im.size], Image.BICUBIC).save(destination_file)
|
||||
im.resize([round(i/div) for i in im.size], Image.BICUBIC).save(destination_file, quality=100)
|
||||
|
||||
print("Done.")
|
||||
|
Loading…
Reference in New Issue
Block a user