$image not corrupted

Allows you to check whether an image is corrupted or not.


Example

Running this code will check if the image "TEST.png" is corrupted or not. If the image is not corrupted, the statement "Image is okay" will be shown. If the image is corrupted, the statement "Image is corrupted" will be shown.

As shown in the alert box, the image is not corrupted.

if($plugin function("Image Automation.dll", "$image not corrupted", "{$special folder("Application")}\\TEST.png")) {
    then {
        alert("Image is okay.")
    }
    else {
        alert("Image is corrupted.")
    }
}

Running this code will check if the image "TEST - corrupted.png" is corrupted or not. If the image is not corrupted, the statement "Image is okay" will be shown. If the image is corrupted, the statement "Image is corrupted" will be shown.

As shown in the alert box, the image is corrupted.

if($plugin function("Image Automation.dll", "$image not corrupted", "{$special folder("Application")}\\TEST - corrupted.png")) {
    then {
        alert("Image is okay.")
    }
    else {
        alert("Image is corrupted.")
    }
}

Was this helpful?