Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Image/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ protected static function create($formatID)
{
switch ($formatID) {
case static::ID_JPEG:
return new static($formatID, 'jpg', 'image/jpeg', array('jpg', 'pjpeg', 'jfif'));
return new static($formatID, 'image/jpeg', 'jpg', array('jpg', 'pjpeg', 'jfif'));
case static::ID_WBMP:
return new static($formatID, 'jpg', 'vnd.wap.wbmp');
return new static($formatID, 'image/vnd.wap.wbmp', $formatID);
default:
return new static($formatID, $formatID, "image/{$formatID}");
return new static($formatID, "image/{$formatID}", $formatID);
}
}
}