Jump to:

3448 Posts in 1062 Topics by 738 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: 341 Views
  • theGermaniac
    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

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.