1)my theme.scss.liquid doesn’t have the line you referring to
2)The black background appears not on hover but constantly. It’s permanent. Look at the screenshots.
3)Previously I set up hover effect to not change color, and it works fine with 4 collection images out of 6. Only 2 new images I added today have the issue.
I tried this, no success.. anyone able to figure this out? i have the same .psd file outputting to png with the same settings, and still it’s a seemingly random affect - but even re-exporting from photoshop doesn’t fix the issue, idk why it’s choosing some images over others
I suspect what is happening is that when you are uploading a new image to a collection which already has a featured image assigned the format of the original image is being preserved. In other words if you do:
Create a new collection
Assign a jpg to the featured image for that collection
Later, return to the collection and then try to upload a png
Shopify sees that you already have a file path for the collection image which is .jpg and thus converts the png to a jpg
This is likely happening because the system is trying to avoid writing the bytes i.e. content of the png image into a file path which ends with jpg. Since the system is also probably trying to not change the file path / URL in case there are links to it, then the only option is to do that conversion.
As a workaround, I believe if you
Remove the featured image (to get rid of the jpg)
Save the collection
Add the png
then you will be able to add the png as you intend. Appreciate that this is annoying but it might be a temporary solution.
The question we have to resolve is whether it would be acceptable to change the URL of the image from jpg to png as necessary, and is it OK if that breaks any links to the jpg URL. Another idea would be to make trying to upload a png to replace a jpg an error, so the UI would not allow it, and it would provide a message about having to remove the jpg first. That maybe is even more annoying but at least it would be clear as to what is happening.