* update Travis to build on Trusty for code layout
* fix shellcheck replace ! -z by -n
* shellcheck: fix -n doesn't work with unquoted arguments
* more shellcheck fixes
* use bash instead of posix
This new class QgsImageCache is the equivalent of QgsSvgCache
but for raster images.
QgsImageCache stores pre-rendered resampled versions of raster
image files, allowing efficient reuse without incurring the
cost of resampling on every render.
Additionally, it offers the other benefits QgsSvgCache has,
such as thread safety, ability to transparently download remote
images, and support for base64 encoded strings.
as an indicator for users that something went wrong
This was previously only used for replies with incorrect mime
types or authentication errors, but it meant that an incorrect
SVG url would silently result in no symbols rendered.
Also add unit tests for fetching remote svg images
The 'layercount' attribute was not used anyway and the calculated number could already be outdated when loading the project file again due to changes to embedded projects.