﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1733	"""image_filter resize/crop"" action replaces transparent background on black one"	followmelistenme		"Problem is: image_filter module replace transparent background to black one for PNG images.

I tested previous versions and it was working until 1.11.14
Seems that bug came from 1.12.0 version and stay in higher versions.


My configuration is:
{{{
        image_filter_buffer  15M;
	image_filter_jpeg_quality  95;
	image_filter_watermark_width_from 200;
	image_filter_watermark_height_from 200;
	image_filter_watermark_position center-random;

	location ~* ""^/nginx_resize/(?<width>\d+|-)/(?<height>\d+|-)/(?<image_uri>.*)$"" {
		if ($http_x_watermark_path) {
			rewrite ^/nginx_resize/(.*) /watermark-resize/$1 last;
		}

		image_filter        resize $width $height;

		proxy_pass          http://static-cache/$image_uri;
		proxy_set_header    Host static-cache;
	}
}}}"	defect	closed	major		nginx-module	1.14.x	invalid	image_filter, image_filter resize, image_filter crop, transparent background		Linux hostname 4.15.6-1-apparmor #1 SMP PREEMPT Mon Feb 26 15:42:51 +07 2018 x86_64 GNU/Linux	"nginx version: nginx/1.14.0
built with OpenSSL 1.1.0h  27 Mar 2018
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/bin/nginx --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --user=http --group=http --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --http-client-body-temp-path=/var/lib/nginx/client-body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-pcre-jit --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-threads --with-stream_ssl_preread_module --with-stream_geoip_module --with-stream_realip_module --with-http_image_filter_module"
