BulletProof is a image-class function that basically makes it easier to upload image files securely. It puts in all security measures which makes it very amazing however there's one slight issue.
I need it to convert all files uploaded to JPEG, but I have no idea how.
public function convert($type) {
}
This is basically all I got, so in my PHP backend it should work like this.
$result = $bulletproof->fileTypes(array("jpeg", "png", "jpg"))
->uploadDir("../../data/avatars/")
->limitSize(array("min" => 1000, "max" => 300000))
->shrink(array("height" => 96, "width" => 96))
->upload($_FILES['image_file'], $filename)
->convert("jpeg");
Of course though, if there is an easier way I'm all ears!