Results 1 to 5 of 5

Thread: how to add a watermark on a picture and save it using php?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    93

    how to add a watermark on a picture and save it using php?

    hi,
    i looking for a solution to
    add a watermark on a picture and save in same directory using php
    so far i find a script to add a watermark but i want save that file in same
    directory any one can help me?
    thanks a lot

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: how to add a watermark on a picture and save it using php?

    This is a php question that would be best fit in the php forum. i will get a mod to move it.
    My usual boring signature: Something

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: how to add a watermark on a picture and save it using php?

    Anyone can always either pm a mod or report the thread so someone on the staff can get notice and move a thread.

    Thread Moved

    Sounds like you just need help with the saving to a new file?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: how to add a watermark on a picture and save it using php?

    Are you using the GD library?

    If so, you can just output the image to a file:
    PHP Code:
    // for a jpeg
    imagejpeg ($image$filename
    http://de3.php.net/manual/en/function.imagejpeg.php
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: how to add a watermark on a picture and save it using php?

    Quote Originally Posted by RobDog888
    Anyone can always either pm a mod or report the thread so someone on the staff can get notice and move a thread.

    Thread Moved

    Sounds like you just need help with the saving to a new file?
    i pmed hack last night.

    If you are uploading the file, you are going to have to upload it, load it into gd, and save it again. gd functions
    My usual boring signature: Something

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width