Teddy's Dad Posted May 15, 2012 Share Posted May 15, 2012 Hello I am testing the built-in image watermark module. when I try to upload an image for the watermark in the BO, I get this error message: "an error occurred while uploading watermark: /tmp/phpJZYSZG to" I am guessing this is a folder permission issue. The error message doesn't tell me which folder, as you can see. I tried (for test) giving the folders /img and /upload 777 permission recursively but no joy. Any idea which folder this refers to, if that is the problem? any advice would be appreciated. Regards Nima Link to comment Share on other sites More sharing options...
TalerKK Posted May 15, 2013 Share Posted May 15, 2013 (edited) Hi,frankly ,I can't figure out what's wrong with built-in image watermark .but I prefer adding wartermark to images with following codes,I use C#.NET using System.IO; using System.Drawing.Printing; using RasterEdge.Imaging; using RasterEdge.Imaging.Processing; RasterEdgeImaging Image = new RasterEdgeImaging(); //Create an instance of Image and load an existing image using (Image image= Image.LoadImageFromFile(@"C:\1.bmp")); { Graphics graphics=new Graphics(image); RasterEdgeImaging.Font font = new RasterEdgeImaging.Font("Times New Roman", 16, FontStyle.Bold); RasterEdgeImaging.Brushes.SolidBrush brush=new RasterEdgeImaging.Brushes.SolidBrush(); brush.Color=Color.Black; brush.Opacity=100; image.CreateWatermark("watermark", font, brush, new PointF(image.Width/2, image.Height/2)); image.Save(@"C:\1-watermark.bmp"); } If you are insterested in this ,you can find more tutorails of wartermark processing in .NET. Edited May 15, 2013 by TalerKK (see edit history) Link to comment Share on other sites More sharing options...
recthor Posted August 14, 2013 Share Posted August 14, 2013 (edited) I want to offer some help. But I am using another image processing SDK instead of the tool you mentioned above. Because I prefer the one whose way of processing is simple and fast when I need to do with the conversion work.It saves a lot of time for me. It is just one of many but I do appreciate its simple way of processing. Even though I only tried its free trial package to create watermark on images using C#.NET and didn′t check the cost and licensing conditions, it worked great for me. Here are the codes I used to create watermark on images using C#.NET: using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using YiigoImage Image = new YiigoImage(); { string ImageID = (@"C:\ yiigo_example.jpg "); WatermarkType WatermarkType = WatermarkType.Image; // create Watermark Image Graphics graphics=new Graphics(watermark image); { int wmWidth = "30"; int wmHeight = "15"; point = new point(image.Width/2, image.Height/2); } } Image.YiigoImageProcessCreateWartermark(@"C:\ yiigo_example.jpg", watermark image, "30", "15", new point(image.Width/4, image.Height/4)); Image.Save(@"C:\ yiigo_example.jpg"); Share with you. And I hope you success. Good luck. Best regards, Arron thanks for sahring, that's exactly what i am looking for! Edited August 14, 2013 by recthor (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts