{"action":"opened","issue":{"number":715,"created_at":"2011-10-18T04:00:40Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi I just need an embedded logo/watermark to the image Im uploading.\r\n\r\nI have this code in PHP which is working fine on my \"old 1 file at a time\" form\r\n\r\n$imagen_original = $carpeta.'/'.$nombre_new;\r\n// Esta imagen es el logo que se pondra.\r\n// $rutalogo = \"logoNoticias.png\";\r\n$imagen_logo = imagecreatefrompng(\"logoNoticias.png\");\r\n// echo \"Esta es la ruta del logo $rutalogo<br>\";\r\n// Defino ancho, alto del logo.\r\n$ancho_logo = imagesx($imagen_logo);\r\n$alto_logo = imagesy($imagen_logo);\r\n// Creo la imagen a cual se le pondra el logo.\r\n$imagen_dest = imagecreatefromjpeg($imagen_original);\r\n// echo \"Esta es la ruta de la imagen $imagen_original\";\r\n// Defino ancho, alto de la imagen que se le colocara el logo.\r\n$ancho_dest = imagesx($imagen_dest);\r\n$alto_dest = imagesy($imagen_dest);\r\n// Defino la posicion donde se mostrara el logo dejando\r\n// 10 pixeles de espacio. Se mostrara en la parte\r\n// inferior derecho.\r\n$ancho_muestra = ($ancho_dest - $ancho_logo) - 10;\r\n$alto_muestra = ($alto_dest - $alto_logo) - 10;\r\n//Envio la cabecera para mostrar la imagen.\r\n// header(\"Content-type: image/jpeg\");\r\n// Sobre pongo el logo a la imagen.\r\nimagecopyresized($imagen_dest,$imagen_logo,$ancho_muestra,$alto_muestra,0,0,$ancho_logo,$alto_logo,$ancho_logo,$alto_logo);\r\n\r\n// Guardo la imagen que ya tiene el logo.\r\nimagejpeg($imagen_dest,$carpeta.'/'.$nombre_new,100);\r\n\r\n\r\nMy question is, how can I do it?\r\n\r\nI tried to place this code in upload.php right after the move_uploaded_file($uploaded_file, $file_path); (line 191) and it didnt work\r\n\r\nAny suggestions?\r\n\r\nThis is my first time here, maybe Im doing something wrong or asked something already solved, I used the search and did not find anything, please answer me or let me know if this question Im doing is valid.\r\n\r\nThanks!","comments":0,"title":"Embed png image (logo)","updated_at":"2011-10-18T04:00:40Z","url":"https://api.github.com/repos/blueimp/jQuery-File-Upload/issues/715","id":1936050,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"c31ff935720f0d93cab9bd54f56f8361","avatar_url":"https://secure.gravatar.com/avatar/c31ff935720f0d93cab9bd54f56f8361?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/walkovik","id":1134870,"login":"walkovik"},"html_url":"https://github.com/blueimp/jQuery-File-Upload/issues/715","labels":[],"state":"open"},"legacy":{"number":715,"action":"opened","issue":1936050}}