How to resize images with PHP PARSE SDK

181 Views Asked by At

I want to upload resized images with PARSE. ¿I don't now how I can do that. This is the code which I'm uploading images.

if ( isset( $_FILES['image'] ) ) {

    // save file to Parse
    $file = ParseFile::createFromData( file_get_contents( $_FILES['image']['tmp_name'] ), $_FILES['image']['name']  );
    $file->save();
}

$report = new ParseObject("Report");

$report->set("ImageFile", $file);
$report->save();
0

There are 0 best solutions below