Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Djan Blom 99 posts 161 karma points
    May 31, 2011 @ 15:14
    Djan Blom
    0

    Need help creating watermark on portfolio Images.

    Hi all,


    I need some help figuring this out..

    I have this site:

    Version: Umbraco 4.7 RC

    www.omniscience.dk - and under Portfolio I want to put a watermark on my images.

    So, I read that ImageGen could do this for me quick and easy.. Now I've been messing with this for several hours, and I can't figure out what I'm doing wrong.

    heres my code from ImageViewer.ascx :

    <asp:MultiView runat="server" ActiveViewIndex='<%#(int)ViewerStyle%>'>
    <asp:View runat="server">
    <a href="<%#MediaItemPath%>" title="<%#AltText%>" target="<%#LinkTarget%>">
    <img src="/ImageGen.ashx?image=/<%#MediaItemThumbnailPath%>&overlayimage=/css/misc/ImageCopyrightOverlay.png" alt="<%#AltText%>" border="0" class='<%#ImageFound ? "" : "noimage" %>' />
    </a>
    </asp:View>

    And my Webconfig-file:

    <configSections>
    <section name="ImageGenConfiguration" type="ImageGen.ImageGenConfigurationHandler,ImageGen"/>
    </configSections>
    <ImageGenConfiguration configSource="config\ImageGen.config"/>

    Some one please give me a clue here..


    Br,
    Djan

  • Gordon Saxby 1444 posts 1855 karma points
    May 31, 2011 @ 15:22
    Gordon Saxby
    0

    I think you need to Professional version of ImageGen to use "Overlayimage" and it can only be setup in a class. Check out the documentation - http://www.percipientstudios.com/media/16505/imagegen%202.5%20reference%20manual.pdf

     

  • Djan Blom 99 posts 161 karma points
    May 31, 2011 @ 15:24
    Djan Blom
    0

    hm.. allright then.

    Any other suggestions? :)

  • Gordon Saxby 1444 posts 1855 karma points
    May 31, 2011 @ 15:35
    Gordon Saxby
    0

    You could just write text on top of the image using &text= along with &font, &fontsize, &fontcolor

    align=right and valign=bottom would put the text at the bottom right of the image

    e.g. imagegen.ashx?image=xxx&text=xxx&fontsize=18&fontcolor=f5f5f5&align=right&valign=bottom

     

  • talerkk 2 posts 22 karma points
    May 16, 2013 @ 10:40
    talerkk
    0
    I use following mothed to add waterkark to images.

    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");
    }
  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 08:45
    Jatin Gadhiya
    0

    hello there, I want to create a filterable portfolio/Gallery...can you please help me......???

    and i was some try like...(http://www.diplo.co.uk/blog/2011/4/8/creating-a-simple-image-gallery-in-umbraco.aspx)

    first of all create Document type(e.g.. Name:-Album) and also create album master page.... second one create XSLT file and added some code... and after added macro and import macro in album master page... and after added some images in media folder.... and after create content... choose the folder... and now display all images proper...

    but i want to not display all images...i want to filterable like a portfolio...

    thanks in advance..

    I hope your reponse....

Please Sign in or register to post replies

Write your reply to:

Draft