I need to save 2 images one edited and the other unedited. to edit my image with imagecreatefromjpeg($img); I would like to save it in the same directory with another name to have the 2 images. The edited and the original.
AnswerToo many ads?
I would recommend you hicieses in two steps:
1.- Save the image that you uploaded in the folder that you want to
2.- Then with the GD library, to save the image retouched
imagecopyresampled($imagen_nueva, $imagen_vieja, 0, 0, 0, 0,$nuevo_ancho, $nuevo_alto, $ancho, $alto); imagejpeg($imagen_nueva,$destino); imagedestroy($imagen_nueva); imagedestroy($imagen_vieja);
If you put the code that you have, perhaps it might also be easier to help you