Mr DMAN

Just a quick one I hope. Trying to add roundy corners to my .jpgs. The rounded corner config page states :

"Note: the rounded corners effect uses true alpha transparency masking. This means that this effect will fail to be saved on jpegs unless you either

* convert the image to PNG (using the coloractions filter for that),
* underlay a solid color (using coloractions-alpha-flatten) or
* underlay a background image (canvasactions-underlay)

as a later part of this imagecache pipeline. "

I don't want to convert the image to a .png, but I don't know which actions coincide with the other 2 possibilities. It seems that the links have changed so there is no longer a coloractions-alpha-flatten, but the helper text remains unchanged.

Please help a poor soul for whom alpha transparencies and filters are a baffling mystery.

Thanks

Dave

CommentFileSizeAuthor
#5 random-img.jpg14.57 KBintyms

Comments

dman’s picture

If you have imagecache_coloractions enabled (it's a different module from the canvasactions that cuts the corners) you should see "Add Alpha Transparency - Adjust transparency." at the top of the available actions list.
Add that at the end of the processing pipeline and choose 'flatten' against a color of your choosing.
That's what "coloractions-alpha-flatten" is shorthand for.

El Bandito’s picture

Thanks for your swift response.

I wonder if there is a little bug here ? When I add the conversion to .png as the last item in my pipeline the rounded corners work. However if I add a flatten action as suggested they only appear on images that were originally .pngs and not the .jpgs.

Regards

Dave

dman’s picture

Could be a bug. It's working for me, but that does sound like the symptom that happens if the alpha-flattening didn't run at all.
Not sure how to replicate.

Can you confirm that the pngs that get saved flattened actually flatten onto color? Or are they just transparent still?

dman’s picture

Status: Active » Closed (fixed)

No response, probably worked it out

intyms’s picture

StatusFileSize
new14.57 KB

it's working for me too.
attached are my settings.

miche’s picture

The screenshot of your settings was what I needed. It worked perfectly. Thank you!

mserinjane’s picture

Worked perfectly, thanks.

Three Actions
1. Scale And Crop 161x161
2. Rounded Corners Radius: 16px
3. Alpha Transparency Flatten : #ffffff

Don't forget to flush your caches (and quite possibly the imagecache flush found next to your imagecache preset)

scatteredbrainV’s picture

[Hi. It's not working for me. I've tried all of these preset, I've cleared and flush both the cache and the imagecache presets, but it's not working. Any clue?]

Never mind: I solved it. I forgot to change a preset in the views gallery module, that prevented rounded corners to appear.