WebChemistry / images

Image storage for Nette Framework
36 stars 20 forks source link

Image modification in latte #28

Closed PavelJurasek closed 6 years ago

PavelJurasek commented 6 years ago

Hi, I was unable to find a way to modify image in-place in latte template. In 2.x I was able to write {img $path, '200x', 'exact'}. Is there a way to do the same in 3.x?

MartkCz commented 6 years ago

neon:

local:
  aliases:
    exact200: 'resite:200,null,exact'

{img $path, exact200}

PavelJurasek commented 6 years ago

Yes, that's exactly what I don't like - configuring image size in neon? Why would I do that?

MartkCz commented 6 years ago

Sorry, but now it's impossible. In future version I want to do aliases with arguments.

MartkCz commented 6 years ago

Now you can do it. Example: https://forum.nette.org/cs/21683-manipulace-s-obrazky-novy-imagestorage?p=4#p197636