Gregwar / Image

A PHP library to handle images
MIT License
1k stars 191 forks source link

Default type for save should always be original #25

Closed atrauzzi closed 11 years ago

atrauzzi commented 11 years ago

Right now the default type for a save is "jpeg" which in the case of certain images might not be desired.

The library should use the value it gets from guessType() during __construct() as a default when saving the image.

Gregwar commented 11 years ago

Hi, You're talking about the toString() behaviour?

atrauzzi commented 11 years ago

Hmm, no. Just that when saving, the library should default to the same format as the original file unless told otherwise.

https://github.com/Gregwar/Image/blob/master/Image.php#L998

ottsch commented 11 years ago

:+1:

Gregwar commented 11 years ago

I've just commited that, I hope this will be OK, keep me on touch if any problem

ottsch commented 11 years ago

Great, thanks!