Jump to:

3373 Posts in 998 Topics by 712 members

Data Model Questions

SilverStripe Forums » Data Model Questions » How to deliver .png files as .jpg?

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 284 Views
  • theGermaniac
    Avatar
    Community Member
    82 Posts

    How to deliver .png files as .jpg? Link to this post

    Hello everyone,

    I want to organise my files inside the backend as lossless .png files, but I want the CMS to deliver them as compressed .jpg files. That way I must not keep the .png files somewhere else, just to make sure I have the best quality images ready to use again.

    What's the best way to setup this?

    Does it make sense to add an extension to the Image object using the GD lib? And is it possible to find out if a .png file uses alpha and - because of that - has to be delivered as .png and not as .jpg?

    Thanks for any help.

    Cheers, Mario

    284 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.