jQuery(document).ready(function($) {
// Add a class to all images that should trigger the print dialog
$('.print-image').click(function() {
// Create a new window with only the clicked image
var printWindow = window.open('', '_blank');
var imageUrl = $(this).attr('src');
// Write the image to the new window
printWindow.document.write('Print Image');
printWindow.document.close();
// Trigger the print dialog for the new window
printWindow.print();
});
});