I am trying to create a JPG image which is using image pagination, but it outputs the image in the browser And I do not want this. It comes as if it is not a JPP stored in $ im. I am trying to resize an image and then work with it in JPG format In PHP, an image was created once, it has not been created once (from , ???? |): This is only a ressource. A typical type of conversion occurs later, when you use for example, outputs the image in the browser or saves it in a file, it's all this, nothing more than boolean. Who says that the conversion was successful or not. $ im = imagecreatetruecolor ($ width, $ height); $ Image = imagecreatefromjpeg ($ filename); Imagecopyresampled ($ im, $ image, 0, 0, 0, 0, width, $ height, $ width_core, $ height_orig); $ Im = imagejpeg ($ im, 'test.jpg', 100);
No comments:
Post a Comment