Ho letto il tuo messaggio.
Io ho un problema analogo al tuo.
Ho caricato su un ftp delle immagini e ora vorrei modificare le dimensioni.
che comando devo usare secondo te?
io ho usato il seguente codice ma non va:


<?php
// File and new size
$filename = indirizzo ftp // 100_0098.jpg';
$newima='indirizzo ftp \ \100_0098.jpg';
$percent = 0.5;

// Content type
header('Content-type: image/jpeg');

// Get new sizes
list($width, $height) = getimagesize($filename);
$newwidth = $width * $percent;
$newheight = $height * $percent;

// Load
$thumb = @imagecreatetruecolor($newwidth, $newheight);
$source = imagecreatefromjpeg($filename);

// Resize
imagecopyresized($newima, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);

// Output
imagejpeg($newima);
?>