[fixes]
- convert test_extended.webp to and actual extended file
- Changes to error handling for timeouts
{:error, {:closed, :timeout}}
and closed streams
[features]
- support for webp images
[changes]
- Reducing some code repitition in the tests
- Add some test images for webp
- Benchmarks updated for webp inclusion
Thanks to [@sneako, https://github.com/sneako] for your contribution.
[changes]
- remove og dep, forgot to remove it.
[breaking changes]
type/1
andtype!/1
functions now return the image types as atoms instead ofString.t()
. image_types =:bmp | :gif | :jpeg | :png
size/1
returns{:ok, Fastimage.Dimensions.t()}
whereas before it returnedmap()
. To achieve the same behaviour as before, nowsize!/1
is now available.type/1
returns{:ok, result}
whereas before it returnedresult
. To achieve the same behaviour as before, nowtype!/1
is now available.- add options to
type/2
,size/2
andinfo/2
as a second argument to allow manual overrides on the otherwise hard-coded values forstream_timeout
,max_redirect_retries
andmax_error_retries
[changes]
- Separate the parser functions into their own module.
- Separate Stream into into own module and create a
%Stream.Acc{}
to bring structured format to the stream processing entity. - Simplify points of implementation of
Utils.close_stream/1
[bug fixes]
close_stream
bug fixed where:hackney
streams were not properly closed.
[enhancements]
- Introduce
Fastimage.info/1
function that gets the type and size in a single streaming pass and return aFastimage
struct with various infos. - Added ability to get size and type for binaries
- Added Fastimage.Error exception structs for improved error handling
- Improved readme
[bug fixes]
- Fix for issue #9
[changes]
- remove dependency on Og
- Remove compile warnings.
- Allow up to 5 retry attempts to stream the url in the event of a timeout (enhancement/bug fix)
- Follow up to three redirects for image files
- Increase timeout for
test "Get the size of multiple image files asynchronously"
from5000
->10000
- Remove warning messages
- Change client from
:gun
to:hackney
. - Add more extensive tests.
- Initial release.