-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opacity png watermark became white box on product images #10661
Comments
#9662 not fixes this issue :( |
Did it work with JPEG anytime before? |
Possibly related https://stackoverflow.com/a/11681066 https://stackoverflow.com/a/38591492. Watermark attached is PNG-8 though. |
not sure. For Magento1 I had used own small "microservice" based on Symfony and Imagine library. And it works ok, see above. |
@Koc Thank you for your report. |
@magento-engcom-team |
Hi @Koc thank you for the update. We updated issue description |
does needs update label should be removed or not? |
@Koc, thank you for your report. |
I will try to reproduce it and see if i can fix it |
I tried to reproduce this and can reproduce it with a cat image (PNG-8) and the GD adapter AND the ImageMagick adapter. When I encountered these issues before they actually depended on the version of GD and/or Imagick and/or PHP. PS: I tried a transparent GIF as well and I ended up in a non-transparent watermark, so that's another fail. |
This should be fixed by @elzekool, we tested the solution |
The watermark functionality uses imagecopymerge for copying the watermark into the image, this function loses the alpha information. Therefor use imagecopy for 100% opacity and use imagefilter in other cases. Resolves: magento#10661
Fixed issues: - MAGETWO-81802: Magento 2.2.0rc23: Customer Grid Indexer not working magento#10838 - MAGETWO-84448: Product Import does not allow store-specific Custom Option labels - MAGETWO-85207: Customer's order grid is not displaying - MAGETWO-86657: Import existing customer with only three columns will override customer group_id and store_id - MAGETWO-86154: Wrong page cached for logged in user - MAGETWO-83293: Inefficient SQL query on applying filter on sales order grid - MAGETWO-83343: Customer shopping cart not accessible in admin order - MAGETWO-85708: Zoom the image can't be closed by iPhone with Safari browser MAGETWO-87132: Remove JsTestDriver from Magento codebase MAGETWO-84219: Creditmemo comment via REST api does not send creditmemo update email MAGETWO-84219: Creditmemo comment via REST api does not send creditmemo update email MAGETWO-86452: [Backport for 2.2.x] Update copyright year alignement array assignement For Your Eyes Only Remove whitespace at end of line FIX: out-of-stock options for configurable product visible on frontend as sellable Adapt \Magento\Analytics\Block\Adminhtml\System\Config\CollectionTimeLabel::render method to use current locale to render time zone label, as done in \Magento\Framework\Locale\TranslatedLists::getOptionTimezones Handle transparncy correctly for watermark The watermark functionality uses imagecopymerge for copying the watermark into the image, this function loses the alpha information. Therefor use imagecopy for 100% opacity and use imagefilter in other cases. Resolves: magento#10661 Fix handling of watermark with alpha for Imagick When adding a watermark that already has an alpha channel this was reset because the overal opacity was set for the image. Instead we should multiply the original alpha with the requested opacity Handle non true color images with GD2 Add integration test for watermark with alpha Added integration tests for handling alpha transparency in watermarks. Renamed the current test for watermarks as it only tests if the watermark is correctly places Fix issues with static tests Remove ui-state-active from siblings of the expanded menu item Previously when a menu item was expanded the class `ui-state-active` was not removed from the previous expanded menu item. This resulted in two (or more if you expanded more) menu items with this class. Clean region when select country :bug: add fallback for Product_links position attribute if position index was not set in API request :ok_hand: shortening variable name :bug: fix variable re-naming :ok_hand: drop multiple empty lines :ok_hand: closing parenthesis and the opening brace of a multi-line function on the same line :ok_hand: closing parenthesis and the opening brace of a multi-line function on the same line :ok_hand: reset protected variable naming :ok_hand: rename isPositionsSet function to isPositionSet to keep consistency Fix typo :ok_hand: apply code enhancement :ok_hand: apply code enhancement Add type hint
Looks like this bug is re-introduced in version 2.2.5, can anyone confirm this? |
We are facing similar issue in 2.2.7. Gif image transparent background is changed to black. |
I am still facing this bug in 2.3.3. The alpha channel of the watermark seems to be replacing the alpha channel of the product image. This causes a box of transparency to appear around the watermark: |
This issue still exit in latest 2.3.4 version downloaded from Magento Market place. |
Here we "solved" it by using 99% opacity instead |
Preconditions
Steps to reproduce
Expected result
Actual result
Addtional info
opacity = 100% (because png has own opacity)
size=empty string
position=bottom/right
The text was updated successfully, but these errors were encountered: