dcollins-marketwired
-
1/27/2014 4:26:51 PM
RE:What animals must be sacrificed to clear cache?
This should duplicate the bug I'm experiencing:
In Photoshop, make two images: big: 200x150, small: 100x75. Make sure the image identifies which is which(put the dimensions right in the image). Save them somewhere.
In Kentico, create a new doc type "myDoc" that contains a form with an attribute of type "File", field of type "direct uploader". Call it "myImage".
Use that doctype "myDoc" on a page, say, in a repeater.
Create a transform to display "myDoc" form so that it contains <div class="myImage"><%# GetImage("myImage") %></div>
Add a new document of type "myDoc" to the page. Call it "myDoc1".
Fill out the "myDoc1" form. Field "myImage" will display a little table: [Actions Update Name Size]. Use the file sector control to point at your image "small". Save the form.
Preview. You will see "small 100x75", and if you look at the properties of the image, it will indeed be 100x75.
Now go back to editing the "myDoc1" form. "myImage" will display the little table again: [Actions Update Name Size]. Click the "Update" button and choose the big image. Save the doc and preview.
You will see "big 200x150" - but the image dimensions will only be 100x75. You cannot change them through any act of refreshing or cache clearing.
The only way to update the dimensions of a new image is to return to editing myDoc1 myImage (the little table again: [Actions Update Name Size]) end EDIT it. There you will find Resize options By percetnage and By absolute size. You must manually change the dimensions and save.
I suppose that's less of a bug than a missing feature. It really messed me up because my before and after images (original and updated) are very similar - only different in size. So it took me a half hour to realize that the image had changed while for some reason not displaying at the correct dimensions. (There is no styling applied to the image to force it to the old size - it ought to have automatically rendered at 100%. A mystery).
|