Crop-to-Debug
Crop-to-Debug is a tool for system administrators. It simulates a cropping act, but does not actually deliver a cropped image as a result, but rather a dump of diagnostic data. It is executed with exactly the same syntax as Crop-to-File with only the Route being renamed to crop-to-debug.
The output is a JSON formatted list of internal parameters and possible errors and warnings. The information can be used for troubleshooting or for automated pre-approval of source images.
Please refer to Crop-to-Data URL syntax for a more comprehensive description of the diagnostic information in the Crop-to-Debug dump.
Sample URL
https://qcrop.net/crop-to-debug/w760:h480:mjpg/qcrop.cloud/QCROP_SAMPLES/12.jpg
Sample Output
QCropToFileJob {
qcache: QCache {
source_path: "qcrop.cloud/QCROP_SAMPLES/01.jpg",
source_filename: "01.jpg",
source_basename: "01",
source_extension: "jpg",
source_url: "http://qcrop.cloud/QCROP_SAMPLES/01.jpg",
source_http_eta: "\"5f73472b-28fb5b\"",
source_http_length: "2685787",
source_http_lastmod: "Tue, 29 Sep 2020 14:39:39 GMT",
source_http_mime: "image/jpeg",
source_hash: "F5563BE8F5C85C3B8034F82C90ACD03D679FB2AD56A16F3A6230BB55EDFC9D34",
repository_prefix: "/home/capcom/qcrop-cache/",
primary_dir: "/home/capcom/qcrop-cache/primary/F5563BE8/F5C85C3B/8034F82C/90ACD03D/679FB2AD/56A16F3A/6230BB55/",
primary_file: "EDFC9D34.jpg",
primary_path: "/home/capcom/qcrop-cache/primary/F5563BE8/F5C85C3B/8034F82C/90ACD03D/679FB2AD/56A16F3A/6230BB55/EDFC9D34.jpg",
primary_sidecar_path: "",
norm_digital_dir: "/home/capcom/qcrop-cache/norm_digital/F5563BE8/F5C85C3B/8034F82C/90ACD03D/679FB2AD/56A16F3A/6230BB55/",
norm_digital_file: "EDFC9D34.jpg",
norm_digital_path: "/home/capcom/qcrop-cache/norm_digital/F5563BE8/F5C85C3B/8034F82C/90ACD03D/679FB2AD/56A16F3A/6230BB55/EDFC9D34.jpg",
norm_client_dir: "/home/capcom/qcrop-cache/norm_client/F5563BE8/F5C85C3B/8034F82C/90ACD03D/679FB2AD/56A16F3A/6230BB55/",
norm_client_file: "EDFC9D34.jpg",
norm_client_path: "/home/capcom/qcrop-cache/norm_client/F5563BE8/F5C85C3B/8034F82C/90ACD03D/679FB2AD/56A16F3A/6230BB55/EDFC9D34.jpg",
},
metadata: QMetadata {
metadata_version: 4,
client_version: 3,
date: "2020-01-01",
old_core_data: CoreMetaData {
mimetype: "JPEG",
w: 6240,
h: 4160,
orientation: 1,
},
act_core_data: CoreMetaData {
mimetype: "JPEG",
w: 6240,
h: 4160,
orientation: 1,
},
crop_hints: [
CropHint {
assoc: None,
hard_crop: RelRect {
x: 0.0,
y: 0.0,
w: 100.0,
h: 100.0,
},
soft_crop: [
RelRect {
x: 0.0,
y: 0.0,
w: 100.0,
h: 100.0,
},
],
vector: RelPoint {
x: 50.0,
y: 50.0,
},
},
],
},
target_brief: QCropToFileBrief {
width: Some(
800,
),
height: Some(
400,
),
aspect_ratio: Some(
2.0,
),
mime_type: "jpg",
compr_qual: 75,
density_x: 72,
density_y: 72,
pr_res: 80,
pr_res_unit: PPCM,
phy_width: Some(
200.0,
),
phy_height: None,
color_profile: Some(
"sRGB",
),
strip_profile: false,
file_cache: false,
},
render_brief: QRenderBrief {
crop_rect: PixRect {
x: 0,
y: 520,
w: 6240,
h: 3120,
},
width: 800,
height: 400,
mime_type: "jpg",
compr_qual: 75,
density_x: 72,
density_y: 72,
color_profile: Some(
"icc-profiles/sRGB.icc",
),
strip_profile: false,
file_cache: true,
},
target_hash: "8716A86E713837989C30E2772AE90D359A062C2D4073544E7D6FE840CF22080B",
target_dir: "/home/capcom/qcrop-cache/crops/8716A86E/71383798/9C30E277/2AE90D35/9A062C2D/4073544E/7D6FE840/",
target_file: "CF22080B.jpg",
target_path: "/home/capcom/qcrop-cache/crops/8716A86E/71383798/9C30E277/2AE90D35/9A062C2D/4073544E/7D6FE840/CF22080B.jpg",
}