Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have been using the fantastic Slimsy plugin to render responsive images to my pages. Currently I am working on a site for a client and I am creating a page of brochures for them that the user can download / view in their brower. As part of this, I am rendering a preview image of the pdf file that I upload to the media section of Umbraco. I am then rendering the images to the page using the following code:
IPublishedContent image = Umbraco.TypedMedia(brochure.GetPropertyValue<int>("brochureImage"));
<img src="@image.GetResponsiveImageUrl(200,300)" class="img-responsive" alt="@brochure.Name" />
The problem I have is despite the images being more or less the same size (give or take 1 or 2 pixels) , some of the images are only rendering a segment of the image with a black background above and below as shown below:
Does anyone know how this can be addressed? I have checked the original dimensions (before slimmage) of the New York image compared to the others and they are as follows:
USA katalog 2480 x 3316
New York 2480 x 3507
Florida 2480 x 3316
The dimensions are hardly a vast difference so this should not be happening. Any pointers would be greatly appreciated.
I think that image may not have been saved in the ImageCropper, perhaps you converted from a standard Upload data type?
Try re-saving that image in Umbraco and let me know. If that's not it, could you post the full url being output for that image?
p.s. I've moved this thread to the Slimsy forum
I've just had a play about with it and it appears it was trying to use a crop even though I hadn't set one. Anyway after some saving and re-saving it is now working.
Ah, that's great!
I'm pretty sure it was a image without the cropper data. I have a Crop Healer package ready to launch beta very soon which when installed should stop this annoying type of issue :)
Hi, I think we're having a similar issue but I can't pinpoint the problem.
In the last week or so, we've got uploaded images that don't seem to be cropping. We have a gallery page of 200x200px cropped and linked tile images.
Most image URL follow this format: /houses.jpg?center=0.49,0.49748743718592964&mode=crop&width=200&height=200&rnd=130729640410000000
- This one is cropped to 200x200.
Then we get the odd random image URL in this format: /p1010826.jpg?crop=0,0.026250000000000002,0,0.22374999999999989&cropmode=percentage&width=200&height=200&rnd=130731330900000000
- This one is just shrunk from 810x810 to 290x290.
Have tried re-saving in Umbraco but no effect, any help you can give would be greatly appreciated!
The first one is using the focal point the second is using a predefined crop. Are they both being rendered by the same GetCropUrl method?
Hi, they should be yes...But something has changed, or is being done differently in the last week or so, and I'm just trying to work out what! Thanks again
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted