Liipimaginebundle: Conversion from JPG to PNG

Created on 3 Nov 2015  路  4Comments  路  Source: liip/LiipImagineBundle

Hi there,

after 2 hours of research without finding a solution, I could really appreciate some help:

I want to convert a JPG-file with this bundle to a PNG file (applyMask with transparency).

The output of my file is Mime-Type and content PNG, however, the filename sticks to ".jpg".

I find this a little confusing, is there a way to change the filename to ".png" or at least to loose the ending?

liip_imagine:
    resolvers:
        default:
            web_path:
                cache_prefix: media/cache
    filter_sets:
        cache: ~
        hexagon_large:
            quality: 75
            format: png
            filters:
                hexagon:
                    size: [201,175] #size of mask png

Most helpful comment

Should we reopen this issue? 2.0 was released but this issue not resolved yet

All 4 comments

I think you can find partial answer here https://github.com/liip/LiipImagineBundle/issues/584

Should we reopen this issue? 2.0 was released but this issue not resolved yet

@Koc and @makasim not sure if this is still something down the road for 2.x version but I have personnally managed to achieve this with a custom DataLoader and custom CacheResolver that I will be happy to share to the community.
Not sure it covers all the user cases but it can certainly be a base for further development.
Let me know what is your progress on this and I will share some code with you.

Was this page helpful?
0 / 5 - 0 ratings