Skip to content

Commit

Permalink
don't pretend to know xres and yres
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Sep 29, 2023
1 parent 9ed0615 commit 521bb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SlideServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def makePyramid(filename, dest):
try:
filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
destpath = os.path.join(app.config['UPLOAD_FOLDER'], dest)
savedImg = pyvips.Image.new_from_file(filepath, access='sequential').tiffsave(destpath, tile=True, compression="lzw", tile_width=256, tile_height=256, pyramid=True, bigtiff=True, xres=0.254, yres=0.254)
savedImg = pyvips.Image.new_from_file(filepath, access='sequential').tiffsave(destpath, tile=True, compression="lzw", tile_width=256, tile_height=256, pyramid=True, bigtiff=True)
while not os.path.exists(filepath):
os.sync()
sleep(750)
Expand Down

0 comments on commit 521bb6a

Please sign in to comment.