Save thumbnails with proper extension
This might cause double extensions, but that's ok since the filename is stored in the database. We might want to look at it later though.
This commit is contained in:
parent
220a13b87f
commit
9a843548c0
|
@ -442,7 +442,7 @@ class File extends Managed_DataObject
|
|||
}
|
||||
|
||||
// throws exception on failure to generate thumbnail
|
||||
$outname = "thumb-{$width}x{$height}-" . $image->filename;
|
||||
$outname = "thumb-{$width}x{$height}-{$image->filename}." . File::guessMimeExtension($image->mimetype);
|
||||
$outpath = self::path($outname);
|
||||
|
||||
// The boundary box for our resizing
|
||||
|
|
Loading…
Reference in New Issue
Block a user