Nathanael Jones
52p129 comments posted · 1 followers · following 0
4 weeks ago @ Nathanael Jones - Referencing stylesheet... · 0 replies · +1 points
I've uploaded them as a project to https://github.com/nathanaeljones/WebFormsFixes Let me know if you find any bugs; e-mail me at support@imageresizing.net, as I don't get comment notifications.
4 weeks ago @ Nathanael Jones - Extending Page: Adding... · 0 replies · +1 points
14 weeks ago @ Nathanael Jones - 20 Image Resizing Pitf... · 0 replies · +2 points
Regarding the time stamps, time zone issues are always important. I've had an issue where the file came from a SAN with the time set in the future and ASP.NET threw an exception when I tried to use the value in theLast-modified: HTTP header.
For the ImageResizer DiskCahce however, file times don't need to be accurate or use the right time zone for the disk cache to work properly - it really doesn't care - it only cares if the source file timestamp changes. If you use a broken file copy tool to move from one SAN to antoher, well, images may get regenerated. But there's really no way to fix that without introducing false matches, which happen. A few years back I used to (due to a typo) only compare the millisecond count, not minutes/hours, and I had multiple reports of cached files not updating.
17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 1 reply · +1 points
jcrop_reference.setOptions({ aspectRatio: 16/9 });
Notice that that's the same code used by the event handler for the 'lock aspect ratio' checkbox.
17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 0 replies · +1 points
17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 2 replies · +2 points
17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 4 replies · +1 points
17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 6 replies · +1 points
Try creating a new .aspx page in your project (so that it will use the correct files appropriate to your specific project type), then copy and paste the sample code into Page_Load, and the contents of the .aspx into the new .aspx page. Leave the <%@ Page> declaration alone - don't replace it with the declaration from the sample code.
Try that, and see if it will compile for you. I suspect you're using a Web Site project instead of a Web Application project.
FYI, login to IntenseDebate if you want your comments to be automatically approved... anonymous comments have to be individually moderated.
17 weeks ago @ Nathanael Jones - Referencing stylesheet... · 0 replies · +1 points
17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 8 replies · +1 points
if (Page.IsPostBack && !string.IsNullOrEmpty(img1.Value))
ImageBuilder.Current.Build("~/" ImageResizer.Util.PathUtils.RemoveQueryString(img1.Value), "~/cropped.jpg", new ResizeSettings(img1.Value));
Put a plus symbol between "~/" and ImageResizer.Util... The comment system is stripping it out..
Production