What is the main issue faced by the user regarding automatic image download in PHP?

The main issue faced by the user regarding automatic image download in PHP is that the images are not being downloaded automatically when accessing a webpage. This issue can be solved by using the `header()` function in PHP to force the browser to download the image instead of displaying it.

<?php
// Specify the path to the image file
$image_path = 'path/to/image.jpg';

// Set the appropriate headers to force download
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . basename($image_path) . '"');
header('Content-Length: ' . filesize($image_path));

// Output the image file
readfile($image_path);