Fix bug wrong orientation caused by EXIF

This commit is contained in:
verboomp
2026-02-06 09:37:03 +01:00
parent bb4d7fbf68
commit b6158d933f
3 changed files with 141 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ public class PictureResourceTest extends AbstractRestTest {
String authorization = getAuthorization();
LOG.info("authorization: " + authorization);
String path = deploymentURL + PATH + "/image/1?size=1";
String path = deploymentURL + PATH + "/image/37?size=1";
Request request = Request.Get(path).addHeader("Accept", "image/jpg")
.addHeader("Authorization", authorization);
@@ -178,4 +178,16 @@ public class PictureResourceTest extends AbstractRestTest {
int code = httpResponse.getStatusLine().getStatusCode();
assertEquals(404, code);
}
public static void main(String[] args) throws IOException {
var test = new PictureResourceTest();
test.deploymentURL = "http://localhost:8080/";
test.deploymentURL = "https://hartmann-cue.heydevelop.de/";
test.username = "adm";
test.password = "x1t0e7Pb49";
test.doGetPicture();
}
}