Shared image server query service

This commit is contained in:
Michael Spalti
2022-01-25 09:20:19 -08:00
parent 3ef96ba30c
commit abf198037a
3 changed files with 6 additions and 42 deletions

View File

@@ -34,15 +34,6 @@ public class IIIFApiQueryServiceImpl implements IIIFApiQueryService {
@Override
public int[] getImageDimensions(Bitstream bitstream) {
return getIiifImageDimensions(bitstream);
}
/**
* Retrieves image dimensions from the image server (IIIF Image API v.2.1.1).
* @param bitstream the bitstream DSO
* @return image dimensions
*/
private int[] getIiifImageDimensions(Bitstream bitstream) {
int[] arr = new int[2];
String path = IIIFSharedUtils.getInfoJsonPath(bitstream);
URL url;