I do a lot of video editing with my mac and whenever I create a video for upload on the web I always need a still image for the preview image in the jwPlayer I use on the web. I used to have to have some kind of program to grab the still and export it for me, not anymore. This functionality is built right into OSX, all you simply have to do is do a SHIFT-COMMAND-4 and it will bring up a crosshairs and allow you to select the item you would like to capture and immediately turn that into a png file and place it on your desktop, how cool is that?
Archive for the ‘Image’ category
Cool OSX tip of the day.
January 25th, 2013How to resolve issues with embedded images in email.
May 10th, 2012I am embedding an image into an email that the server is generating using the SmtpClient in .net and I was having an issue with it caching images in certain situations and then Internet Explorer wouldn’t display the images at all, which is probably a security feature of IE, but the images did show up in Firefox and Chrome. Anyways, here is the code below that will make all of it work correctly in IE and should always show the images correctly, it generates a new Guid to always have a unique image Id so that caching won’t happen and then also tells the client that the ContentType is a jpeg which apparently IE needs to display the image correctly.
Guid contentId = Guid.NewGuid().ToString(); AlternateView htmlView = AlternateView.CreateAlternateViewFromString( "This is a sample JPG embedded image<br><img src="cid:" + contentId + "">", null, "text/html"); ContentType ct = new ContentType(MediaTypeNames.Image.Jpeg); LinkedResource EmbeddedObjects1 = new LinkedResource("PathToImage\image1.jpg", ct); EmbeddedObjects1.ContentId = contentId; htmlView.LinkedResources.Add(EmbeddedObjects1);