Skip to content

Commit

Permalink
forgot tiffsave
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Sep 22, 2023
1 parent 1d76e7e commit ad44bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openatlas/views/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def file_add(id_: int, view: str) -> Union[str, Response]:
@app.route('/file/iiif/<int:id_>', methods=['GET'])
@required_group('contributor')
def make_iiif_available(id_: int):
command = f"vips {get_file_path(id_)} {Path(app.config['IIIF_DIR']) / str(id_)} --tile --pyramid --compression deflate --tile-width 256 --tile-height 256"
command = f"vips tiffsave {get_file_path(id_)} {Path(app.config['IIIF_DIR']) / str(id_)} --tile --pyramid --compression deflate --tile-width 256 --tile-height 256"
# command =f"convert {get_file_path(id_)} -define tiff:tile-geometry=256x256 -compress jpeg 'ptif:{Path(app.config['IIIF_DIR']) / str(id_)}'"
# call_ = call(f"convert {get_file_path(id_)} "
# f"-define tiff:tile-geometry=256x256 -compress jpeg "
Expand Down

0 comments on commit ad44bbc

Please sign in to comment.