Another question about
I have several formats in my
assets/img folder and I was wondering if there is a way of
Let me explain: I use
-size.type to refer my files, thus by that I can do:
beholder-xs.png << notice this one is png beholder-md.jpg car-es-xs.jpg
My problem arises because I also have some files which need to be multilingual.
The multilingual part is what I can’t get around. I can do an IF statement for each file that is in
png format, because these are just a few, but I’m curious if there’s an easier way to that.
(I need them to be png because of transparency.)
Is there a way to check if the file format is jpg and then go to png if its not for each file in resources?