Home php MODX PHPTHUMBOF

MODX PHPTHUMBOF

Author

Date

Category

I can not figure it out why the image of images does not work in MODX phpthumbof. The documentation has an example:

[[+ imageurl: phpthumb = `w = 234 & amp; h = 123 Δ zc = 1`]]

displacing in the same way in the Chanka, in the IMG tag, in the SRC attribute, I write the following:

src = "[[+ image: phpthumb =` w = 104 & amp; h = 123 & amp; zc = 1`] ] "

As a result, the picture is displayed unchanged.


Answer 1, Authority 100%

I once suffered from PhpThumbof found a rewritten (fork) option in which everything works. So I recommend. http://modx.com/exTras/Package/Pthumb
Here is a work piece with one of the projects

& lt; img src = "
[[! Pthumb?
  & amp; input = `[[* pageimage]]`
  & amp; options = `& amp; w = 300 & amp; h = 300 & amp; f = png & amp; FLTR [] = WMI | /Ssets/images/templates/wmismall.png/ | 155x270`
]] "/ & gt;

Answer 2, Authority 25%

PHPThumb comes with MODX, but to use it as an output modifier, it is necessary to snippet that does not go in delivery. You can take it here: snippets phpthumb for output filter


Answer 3, Authority 25%

Forget about phpthumbof, use PHPThumbon snippets (works at once shunter). Uses all the same modifiers, and is called the same, here is an example:

[[* image: phpthumbon = `w = 200 & amp; h = 200 & amp; zc = 1`]]

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions