I followed the tutpirial on this page: http://doc.silverstripe.com/doku.php?id=imageupload&s=image
Using silverstripe 2.2
Here is my (non working) code (located on ArtistPage.php):
class ArtistPage_ResizedImage extends Image {
function generateArtistResized($gd) {
$gd->setQuality(100);
return $gd-> paddedResize(340,340);
}
}
Here is the code on ArtistPage.ss:
<img src="$Resized.ArtistResized.URL" alt="$Title"/>
It appears to be exaclty the same as what they told me to do, but it doesn't work!
The image I've uploaded is called PrimaryImage in ArtistPage.php if that has anything to do with it.
Any help?