PreviewImage: Remove PNG support (to clean dependencies)
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 11m13s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m37s
Build Packages / build:rpm (rocky8) (push) Successful in 12m38s
Build Packages / Generate python client (push) Successful in 15s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 13m1s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 12m57s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m2s
Build Packages / Build documentation (push) Successful in 34s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m34s
Build Packages / build:rpm (rocky9) (push) Successful in 14m12s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m17s
Build Packages / Unit tests (push) Successful in 53m11s

This commit is contained in:
2025-10-31 11:43:08 +01:00
parent 0217f3713e
commit fce1a2dca9
22 changed files with 14 additions and 532 deletions
@@ -1081,53 +1081,6 @@ export class DefaultService {
});
}
/**
* Get preview image in PNG format using custom settings
* @param id Image ID in the image buffer. Special values: -1 - last image in the buffer, -2: last indexed image in the buffer
* @param showUserMask Show user mask
* @param showRoi Show ROI areas on the image
* @param showSpots Show spot finding results on the image
* @param showBeamCenter Show beam center on the image
* @param saturation Saturation value to set contrast in the preview image
* @param jpegQuality Quality of JPEG image (100 - highest; 0 - lowest)
* @param showResRing Show resolution ring, provided in Angstrom
* @param color Color scale for preview image: 0 - indigo, 1 - viridis, 2 - B/W, 3 - heat
* @returns binary Preview image
* @throws ApiError
*/
public static getImageBufferImagePng(
id: number = -1,
showUserMask: boolean = false,
showRoi: boolean = false,
showSpots: boolean = true,
showBeamCenter: boolean = true,
saturation: number = 10,
jpegQuality: number = 100,
showResRing: number = 0.1,
color: 'indigo' | 'viridis' | 'bw' | 'heat' = 'indigo',
): CancelablePromise<Blob> {
return __request(OpenAPI, {
method: 'GET',
url: '/image_buffer/image.png',
query: {
'id': id,
'show_user_mask': showUserMask,
'show_roi': showRoi,
'show_spots': showSpots,
'show_beam_center': showBeamCenter,
'saturation': saturation,
'jpeg_quality': jpegQuality,
'show_res_ring': showResRing,
'color': color,
},
errors: {
400: `Input parsing or validation error`,
404: `Image not present in the buffer - either not yet measured or already replaced by a next image.`,
500: `Error within Jungfraujoch code - see output message.`,
},
});
}
/**
* Get preview image in TIFF format
* @param id Image ID in the image buffer. Special values: -1 - last image in the buffer, -2: last indexed image in the buffer