Nathanael Jones

Nathanael Jones

52p

133 comments posted · 2 followers · following 0

11 years ago @ Nathanael Jones - jCrop and ASP.NET serv... · 1 reply · +1 points

You need to call Server.MapPath first.

11 years ago @ Nathanael Jones - jCrop and ASP.NET serv... · 3 replies · +1 points

PathUtil.GuessVirtualPath() is what you're looking for. 

11 years ago @ Nathanael Jones - jCrop and ASP.NET serv... · 0 replies · +1 points

12 years ago @ Hanselminutes - Hanselminutes Technolo... · 0 replies · +2 points

Here's the official clarification on what "Not supported" means: http://blogs.msdn.com/b/winformsue/archive/2007/0...

To quote: We don't mean they won't work in an ASP.NET application or that we are trying to cover up some known bug that occurs when you use them in a service. The bottom line is that if you call Microsoft Product Support Services regarding a problem you have using a System.Drawing.* class in a service, they will not offer free support.

System.Drawing is safe if you're using it 100% correctly and avoiding all the bugs. But I certainly don't blame Microsoft for not supporting it.

The ImageResizing.NET project allows you to choose between several pipelines: GDI+ (System.Drawing), WIC (WIndows Imaging Components), and FreeImage (The *nix standard for image processing).

12 years ago @ Nathanael Jones - Referencing stylesheet... · 0 replies · +1 points

Sincere apologies for the delay. I lost those files during a disaster in 2009, and had to re-create them.
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.

12 years ago @ Nathanael Jones - Extending Page: Adding... · 0 replies · +1 points

I lost those files during a disaster in 2009. I've recreated them and 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.

12 years ago @ Nathanael Jones - 20 Image Resizing Pitf... · 0 replies · +2 points

True - RoughCompare assumes both the source file and destination file are on the same filesystem type. If you have part of the website on NTFS and part on FAT, you'd definitely need to change the code. However, changing it to 2s acuracy may cause false matches, so I wouldn't suggest it unless you are actually using FAT.

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.

12 years ago @ Nathanael Jones - jCrop and ASP.NET serv... · 1 reply · +1 points

Yep, and it's easy. Just call

jcrop_reference.setOptions({ aspectRatio: 16/9 });

Notice that that's the same code used by the event handler for the 'lock aspect ratio' checkbox.

12 years ago @ Nathanael Jones - jCrop and ASP.NET serv... · 0 replies · +1 points

Glad I could help :)

12 years ago @ Nathanael Jones - jCrop and ASP.NET serv... · 2 replies · +2 points

The issue is that you were trying to use the sample project as a "Web Site" instead of a "Web Project", and thus the files were not compiling correctly. If you open a Web Project as a Web Site, you must change "Codebehind" to "Codefile" in the first line of each .aspx file.