How does the loading process differ between normal images and compressed images in PHP?

When loading normal images in PHP, you can use functions like `imagecreatefromjpeg()`, `imagecreatefrompng()`, or `imagecreatefromgif()`. However, when loading compressed images, you need to first decompress the image data before using these functions. This can be done using libraries like `zlib` or `gzdecode`.

// Example of loading a compressed image in PHP
$compressedImageData = file_get_contents('compressed_image.jpg');
$decompressedImageData = gzdecode($compressedImageData);
$image = imagecreatefromstring($decompressedImageData);

// Now you can work with the image as usual