I tried this hack, but the image is being cut-off at different places.
What I have been able to test is that by changing the last line of the hack I get different results: (regardless of the watermark being added or not)
imagejpeg($im, fetch_attachment_path($posterid, $attachmentid), 100);
cuts the image a lot but it displays fast.
imagejpeg($im, fetch_attachment_path($posterid, $attachmentid), 90);
cuts the image less but it begins to get slow
imagejpeg($im, fetch_attachment_path($posterid, $attachmentid), 80);
shows the entire image but so slow that it never finishes the page
It looks like the hack changes the jpeg and saves it leaving something out of wack.
Does anyone has any idea why this is?
|