imgproxy icon indicating copy to clipboard operation
imgproxy copied to clipboard

Style transformation for SVG broken since 3.23

Open kartikrao opened this issue 9 months ago • 1 comments

Screen Shot 2023-09-20 at 10 35 27

Tried style out, but unfortunately I cannot get it to work.

Here is an example URL where I've attempted to color an SVG icon per your instructions above. http://localhost:8080/unsafe/st:KiB7ZmlsbDogI2NjYyAhaW1wb3J0YW50fQ/plain/https://images.drive.com.au/driveau/image/upload/v1/cms/theme/icons/HamburgerMenuIconStraight

I can see its being picked up and interpreted by imgproxy looking at the logs INFO [2023-09-20T00:32:06Z] Completed in 63.856542ms /unsafe/st:KiB7ZmlsbDogI2NjYyAhaW1wb3J0YW50fQ/plain/https://images.drive.com.au/driveau/image/upload/v1/cms/theme/icons/HamburgerMenuIconStraight request_id=eQzZpiV_LP_UTcmDLbLL3 method=GET status=200 client_ip=172.17.0.1 image_url="https://images.drive.com.au/driveau/image/upload/v1/cms/theme/icons/HamburgerMenuIconStraight" processing_options="Style: * {fill: #ccc !important}"

However in the resultant image there is no style node in the output. Screen Shot 2023-09-20 at 10 34 39

Screen Shot 2023-09-20 at 10 36 42

What am I doing wrong ?

Originally posted by @kartikrao in https://github.com/imgproxy/imgproxy/issues/1202#issuecomment-1726722082

kartikrao avatar May 03 '24 09:05 kartikrao

Fixed in the latest build

DarthSim avatar May 03 '24 15:05 DarthSim

@DarthSim - I've tried both 3.24.1 and latest and they both still have the issue.

kartikrao avatar May 12 '24 09:05 kartikrao

I guess you're trying an old latest. What's the SHA of the image you're using?

I basically just reverted the changes that caused the issue.

DarthSim avatar May 12 '24 15:05 DarthSim