Manol Posted July 5, 2017 Posted July 5, 2017 Trying to resize an image that way but gives me a 500 error //OPTION A (500 error) echo "<img src='{$page->images->eq(0)->resize(340,480)->url}' alt=''>" //OPTION B (500 erro either) $myImage = $page->images->eq(0); $myResized = $myImage->resize(340,480); echo "<img src='{$myResized->url}' alt=''>"
kixe Posted July 5, 2017 Posted July 5, 2017 What about putting a semicolon to the end of your echo line?
BitPoet Posted July 5, 2017 Posted July 5, 2017 11 minutes ago, kixe said: What about putting a semicolon to the end of your echo line? That, and it should be $image->size(), not resize(). 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now