PNG ImageCopy Quality
Posted: Tue Sep 16, 2003 9:55 pm
Hi, I have my background image "day.jpg" that I want to put "watermark1.png" onto. The png is 24-bit color and is the same dimension size as the JPG but has transparency in some parts.
The problem I am having is the overlay PNG image looks blury, and the background looks slightly lower in quality. Anyone know how to fix this?
Thanks in advance
The problem I am having is the overlay PNG image looks blury, and the background looks slightly lower in quality. Anyone know how to fix this?
Code: Select all
<?php
$im = imagecreatefromjpeg("day.jpg");
$png = imagecreatefrompng("watermark1.png");
ImageAlphaBlending($im, true);
imagecopy($im, $png, 0, 0, 0, 0, 300, 500);
ImageJPEG($im);
?>