Forum
Crop not working...
I'm trying to crop images when they get uploaded onto a page. It's just not working...
Here's my template code:
<article data-id="id<perch:content id="perch_item_index" type="hidden" />" data-type="<perch:content id="datatype" type="text" help="wordpress, html, Javascript, perch, design" label="Filter Group" />" class="span3">
<div class="thumbnail hover-pf5">
<img src="<perch:content type="image" id="image" label="Image" width="370" height="260" crop="true" density="2" />" alt="<perch:content type="text" id="alt" label="SEO Description ALT Text" required="true" title="true" />" />
<div class="mask-1"></div>
<div class="mask-2"></div>
<div class="caption">
<h2 class="title" style="background-color:#ff8500;"><a href="<perch:content type="text" id="url" title="true" label="Live Link" >"><perch:content id="titletext" type="text" label="Title" required="true" title="true" /></a></h2>
<p><perch:content id="description" type="text" label="Description" required="true" title="true" /></p>
<a href="<perch:content type="text" id="url" title="true" label="Live Link" />" class="info btn btn-inverse"><perch:content id="anchortext" type="text" label="Link Text" required="true" title="true" /></a>
</div>
</div>
</article>
I'm getting around this by pre-configuring the images... A right pain in the ...
Thanks for your help Steve
Please let us see your Diagnostic Report.
Here's the diagnostics...
Are you uploading images that are larger than the crop size?
Yes. The one I am testing is 350px X 500px it should be cropping to 350 X 260....
What am I getting wrong?
Your crop size is 370, so it's not large enough.
Oh, I see... It'll only crop IF both sides are too big???
That's right - otherwise it would need to scale up.
Cool thanks Drew ;)