Dpi ile alakası yokmuş. Aşağıda 300 x 300 dpi kaydettim yine renk olmadı
$t = imagecreatefromjpeg(storage_path("deneme.jpg"));
$s = imagecreatetruecolor("1280", "1920");
imageresolution($s,300,300);
$x = imagesx($t);
$y = imagesy($t);
imagecopyresampled($s, $t, 0, 0, 0, 0, "1280", "1920", $x, $y);
imagejpeg($s, storage_path("image.jpg"));