Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Add Transparent Copyright Text To Image


I need a way to add a transparent copyright message (e.g. copyright 2002 together with my company logo) to my photos on the fly. My photos come in many different formats, such as PNG, GIF and JPEG.




View Complete Forum Thread with Replies

Related Forum Messages:
Transparent Text On Image?
Is it possible to place transparent text on an image? I want to display an image of some text in a fancy typeface, but superimpose text in a plain style, so that it can be copied and pasted; a bit like what you see in some PDF files, where the page image is visiable, the overlying text is not.

View Replies !
PHP (GD) Created Transparent PNG: AlphaImageLoader Makes Black Parts Transparent Instead Of Transparent Color Set With PHP
I have a problem with PHP (GD) created transparent PNG and Microsofts
AlphaImageLoader.

You will immediately see what the problem is if you view
http://www.useful-scripts.biz/test/.../transpng_2.php with IE 7
or Firefox and then with IE 6. It seems that the AlphaImageLoader
works correctly on a PNG image that has been created with an image
processor and then uploaded, but not with a PNG image created with
PHP. It seems to ignore the transparent color set with PHP and instead
to render the black color transparent.

The image in question was created using this code:

<?php
$source = imagecreatefrompng("parrot_orig.png");
$transp = imagecolorallocate($source,255,0,0);
imagecolortransparent($source,$transp);
imagefilledrectangle($source,15,15,70,70,$transp);
imagepng($source,"parrot_php.png");
?>

The HTML used on the page is this:

View Replies !
Creating Image From Uploaded Image And Transparent PNG
Say the client wants to be able to change the image, but not the text treatment, and doesn't have the Photoshop knowledge to actually replace it and re-save it themself.

Is there anyway to use a PNG with the rounded edges, text treatment, and transparent center, have the client upload a standard rectangular-shaped image, and use PHP to layer the uploaded image underneath the transparent one, creating a new image file?

View Replies !
Transparent Image
Hi!

Here's a piece of code:

[begin]

<?php

Header('Content-type: image/png');

$sz = "";

$FileValue = 1000;

$i = strlen($FileValue);

for ( $j = 0; $j < 7-$i; $j++ )
{
$sz = $sz . "0";
}

$Img = imagecreate(56,13);

$Gold = imagecolorallocate($Img,148,128,100);

$Gray = imagecolorallocate($Img,32,32,32);

ImageFilledRectangle($Img,0,0,55,12,$Gray);

imagestring($Img,4,0,0,$sz.$FileValue,$Gold);

imagepng($Img);

ImageDestroy($Img);
?>

[end]

OK. Calling this script I have a png picture back.

Now I add imagecolortransparent($Img,$Gray); just before imagepng() and OK
again, I have a transparent picture back. But now, if I add:

$r = imagerotate($Img,90,0);

imagepng($r);

just after the imagecolortransparent() instruction seen above, I get a
rotated picture, but not transparent. How to solve that? I've used a plenty
of tricks, no one works.

View Replies !
Find Out If An Image Is A Transparent Gif
Does anybody know if there's an easy way to find out if a given image is a transparent gif? (GIF89a)

View Replies !
[GD]: Open Existing Image(url) & Set A Transparent Color
lets say i output an image like this:

$img = array('somedomain.com/foo.jpg');

<img src="$img[0]" alt="" />

but it has a white background and i want to strip the white background to be transparent

how do i do that and output it inline again?

View Replies !
Remove A Black Background From An Image To Make It Transparent Using GD
is it possible to remove a black background from an image to make it transparent using GD. for example. can i pass the radius of the moon to GD (as it is on the image) and have it slice the moon out so to speak leaving it on a transparent background.

View Replies !
How To Create An Image From Text, Or Overlay Text Over An Image.
I am new to dymanic image generation, and from tutorials I have learned the basics (like how to create an image from text, or overlay text over an image). However, I was wondering if there was a way to generate an image based on an external HTML, PHP, or XML page.

View Replies !
Copyright Cms Etc.
just wondering how do i copyright a cms? or protect myself from people stealing it.
etc. can i sell a open source project? has anybody done this sort of thing before.

View Replies !
Make Like An Image With A Preset Image In Backround And Some Text In Forground.
I have been reading this book and its been trying to explain the uses of the gd library. now i understand you can create images to be output. now how do i go and make like an image with a preset image in backround and some text in forground.

View Replies !
GD Text Alignment - Specifically Place Text Over An Image
I need to specifically place text over an image. I've got the image creation down, but all I can seem to do is center the text. So lets say I have an image 300px(W) by 150px(H). I want to right align the text.

View Replies !
Copyright Problems
I am making a new script and there are some copyright problems, what i mean is that, if i write a COPYRIGHT STATEMENT at the bottom of the page, people juse remove it and its getting really annoying. So does any one know of any code where it makes the script stop working when they remove the copyright. -OR-

does anyone know a PHP ENCODING tool (not an obfuscator) like they have in ColdFusion where you can encode the real version of the script, if so, can anyone please tell me where i can find it.

View Replies !
Better Copyright Function?
Im having a problem with people discovering how to crack the copyright removal on one of my scripts, and Im trying to look for a better way to protect the copyright, and to offer copyright removal without it being cracked. Do you guys have any suggestions?

View Replies !
Copyright Your Web Sites?
I have a web site that I just finished.

Should I get it copyrighted before I put it on the public internet?

How do I go about copyrighting all of my php scripts?

View Replies !
Protecting Your Copyright
Lets say I have include("copyright.php") in a php file, now I dont want anybody to remove this but can remove the other text or code, do you know how? I heard there is an option in IonCuber but I dont want to encode the whole php file.

View Replies !
Copyright At The Bottom
im getting no errors but the only thing displaying is the copyright at the bottom of the page. Anyone tell me whats wrong?


Home.php_____________________


<?php
require('includes/page.inc');
$homepage = new page();

$homepage ->SetContent('<table width="95%" height="239" border="0"
align="center" cellpadding="0" cellspacing="0" >

<tr>
<td width="120" height="69" bgcolor="#99CC00"
align="center">jhg </td>
<td>this was inherited</td>
.......................

View Replies !
Photo Copyright
I really don't know where to ask this question, but is there any other way to place a watermark copyright on a photograph besides doing it in photoshop or some sort of photo software?

View Replies !
Copyright Tied To PR Variable.
I tried looking this one up, it likely exists, but i dont know what terms to search for so...

scenario: I offer downloadable software or script or templates etc. On that internet viewable code is my copyright at the bottom with a link back to my site. I have no control over the type of site who will use my software, or its quality, so can I add some code that removes the link back to my site if page PR is below say.. 2.

PR1 and PR0 pages would simply display copyright without link.

It can be done but... should it? and where to start?

View Replies !
Simple Copyright Line
I want to echo out the copyright at the footer of my page (still a noob). Here's what I have in my vars page.

$copyright = '<span class="smallwhite">&copy; 2007 Stone Island Records </span>';

Then I just echo.. <?php echo $copyright; ?>

What I really want to do is have php adjust the year for me. So do I have to make 3 variables, one for the copyright symbol, one to display the current year & another to display our name, or is there a simpler way of doing this?

View Replies !
Preg Match Copyright Symbol
How to Preg match a copyright, trademark, and registered trademark symbol?

'/^([a-zA-Z. .©.®.™])+$/'

That doesn't work. I'm trying to allow those three characters in a Name field.

View Replies !
MySQL Database To Manage All Copyright Notices
My problem is with copyright and as others have pointed out is it is quite easy just to take the code from the page that displays the copyright.

For example if using JavaScript, all you need to do is to remove the bit of JavaScript that points to your external file. The only benefit I see to using a JavaScript file is you can remotely control the content of the copyright notice, but it does not really stop them removing it and is a right pain to modify each file if you need to change the notice. Say there are 100 sites/systems.

What I think might be better, although a little harder to setup would be to use a database (MySQL) to show the copyright notice.

I can see there are a few benefits to this, e.g...

- You can use one file on all 'systems' you want to copyright. If someone removes it, it will error their system, as I can include important bits of the system in this external file. Therefore, they cannot remove the notice. If you update this file, it will update across all systems.

- I can use the one database to manage all copyright notices. Rather than separate files. So when you want to modify its saves so much time.

- I can use the database to store other important information such as license keys, company name, URL, expiry dates etc....

I might be misunderstanding the complexity of what I wish to achieve, but I believe copyright notices are begging to be done in an external database with an external file, at least that way they cannot remove anything.

I have one sticking point however; I have no idea how to do this!

Are there any takers that can point me to a good example on how to carry this out, or anyone that already has a script like this that they could share with me.

View Replies !
Transparent GIF
I am trying to resize transparent GIF images, so I was reading, and they say to use fopen, fread, and read the first 13 bytes... OK, so I read in a transparent gif, and the first 13 bytes... and echo it out to the screen, and I get this: GIF89a›&#65533;s&#65533;÷&#65533;&#65533;What am I supposed to do with that? they then say "allocate that color as transparent, and use imagecopy(); to set the transparency back."

View Replies !
Transparent .png
This isn't totally related to php, but I am using a php generated page that is using transparent .png's.

Anyway, when I view the page in Internet Explorer, the transparency within the png is replaced with grey?? But when I view it in Firefox it works fine?

View Replies !
Transparent GD Watermark.
Any one know what would be the best way to accomplish a transparent watermark on upload with GD that will work for Jpegs, Gifs and Pngs,  using only GD in php 4?

View Replies !
Resize Transparent PNG
I have a basic script to resize a transparent png image. Code:

$dimg = imagecreatetruecolor($newwidth, $newheight);
imagecolortransparent($dimg, imagecolorallocate($dimg,0,0,0));
imagealphablending($dimg, false);
imagecopyresampled($dimg, $simg, 0, 0, 0, 0, $newwidth, $newheight, $currwidth, $currheight);


Problem is that my nice drop shadows are lost in resize. Does anyone know how I can keep them ?

View Replies !
Transparent Background
i'll try to explain myself the best i can, here is the problem:

i have a html page and inside this i want to put an iframe that contains a php page. That's ok, i can do it and it works, but the problem is that i can't make that php document to have transparent background.

it turns white. Is it because of the iframe? the php document has transparent background, but when i see it inside the iframe it doesn't work.

View Replies !
Two Transparent Colours
I have an image that I am opening and then merging onto another image, and it has two colours which I wish to make transparent, but it is not working, can you please give me an example of how to do this thanks. When I say that it is not working, I mean that when I allocate the second one, the first one is no longer transparent.

View Replies !
Transparent Overlay Watermark - On The Fly?
Is it possible to overlay a transparent watermark on an image -
dynamically?

I'd like the result to look like this example:
<http://www.cycletourist.com/temp/photo.php>

That is a bit of overkill, but you can see what I mean. The watermark
image (a png image) is included separately below the photo.

I tried using a class from phpclasses.org
<http://www.phpclasses.org/browse/package/1580.html...
but the result looks horrible. The transparency does not work.

I found one other method through Google,
<http://www.sitepoint.com/article/watermark-images-php>
but it did not work, either.

Can this kind of transparent overlay be done on the fly with GD lib?

View Replies !
Dynamically Transparent Gif's
Basically what i would like to do is dynamically set the transparency of a selection of images (GIF'S) depending on variables set in a My SQL Database. What i need to do is tint some jpg,s by setting the transparency of a solid blue gif which is set over the top of it in a table.

View Replies !
GD: Testing A Pixle To See If It's Transparent?
How would I determine if a pixel is 100% transparent on a given image?

View Replies !
Imagegettftext Transparent Holes
I created an image, made it transparent, drew a rounded rectangle on it and then wrote on it with imagegettftext - where the text is there are transparent holes.

$image = imageCreateTrueColor($width,$height);
imageSaveAlpha($image, true);
ImageAlphaBlending($image, false);

$transparentColor = imagecolorallocatealpha($image, 255-$r, 255-$g, 255-$b, 127);
imagefill($image, 0, 0, $transparentColor);

$background = imagecolorallocate($image, $br, $bg, $bb); .......

View Replies !
Define The Transparent Color
I've made a script that takes images (in gif,jpg & png) and makes their thumbs in jpg format. Now, the problem is if I have a transparent gif when saved to jpg the part of the original picture that is transparent turns black in the new thumb. My question is: how can I define that the transparent part gets the color i want it to get (white is what i need) ?

Actually, I now what in theory should be done. I should change the r,g,b values of the color that has aplha=127 (and that's not a problem with imagecolorset()), but also I should change the alpha of that color to 0. how can that be done ? My quess is that that is the right way to do it.

View Replies !
Transparent Watermarks On Images
I'm using the code below to make a watermark and it's kinda working, but I want it semi-transparent as the PNG file is itself.

Is there an easy way of overlaying transparent images in the GD library, so that the original image is merged in such as way that it can be seen through the watermark? Code:

View Replies !
Make Thumbnail Transparent
I have a script that will upload an image, then create a thumbnail of that image. When I upload an image with a transparent background the normal sized image comes out with a transparent background, but the thumbnail image comes out with a black background. Code:

View Replies !
Transparent Filled Polygon
I'm working on a map program where each building is clickable and when it's clicked the page is refreshed to show a map with the building highlighted (in red). I was wondering if it would be possible to highlight the buildings using some sort of combination of the imagepolygonfill function and a transparency function (i'd like the buildings to still be visible under the highlight), rather than having to create many different files with the different buildings highlighted.

View Replies !
Make A Colour Transparent
I would like to do is grab an image, determine what colour is at a certain pixel (maybe 10, 10) and then set that colour to transparent for the whole image. Basically it is so that I can dynamically place an image on various backgrounds for previewing. I am not worried about perfection (anit-aliasing, matte, etc).

View Replies !
.htaccess Transparent SESHID And Sessions
just putting the finishing touches on a shopping site and have run into errors in the process when users are blocking cookies. i am using:

<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>

in my .htacess file to supress the PHPSESSID=22y3213etc. but it means that if a cookie isn't set the site fails to work properly.

if i remove that from my .htaccess the site works fine because the PHPSESSID is passed around evey page, but it knackers things for SEO purposes. Code:

View Replies !
GIF Resize Resample Transparent Fill
I am currently trying to create what I would think is simple. I want to create a image.php file and have it resize a 80 x 80 image to 29 x 29 with out losing the quality. When I try to have the gif image imagefill with the color white (255,255,255) it holds up and ends with a timeout. The gif images also have the black pixels if i don't try filling.

Does anyone know a simple script to just resize a gif/jpg file? All documentation has been pretty bad so this is first time posting.

View Replies !
Text To Image?
I have a URL that displays a background image and text overlay but I was wanting to know if its possible to combine the two and have it show as a image? Code:

View Replies !
Text On Image.
I would like to put some text over the top of an image... how do I do this make the image a background or?

View Replies !
Get Text From Image
How to get text from Image?

View Replies !
Certain Image/text
I need to write a script that will display a certain image/text depending on what day of the week, and what time of day it is currently.

i.e. If Monday between 10am - 2pm display image 'X' and text 'blahblahblah'

I need this for 7 different variables. Now I'm really not asking for anyone to write the script for me (I'm not that kind of noob lol), but if someone could point me in the right direction as to which functions to use (I'm pretty comfortable using date("l") for weekday and date("H") for the hour) to match the images/text to the time/date.

View Replies !
Text Within A PNG Image
I have a script which basically puts in 2 words into a PNG image, what I want to do is, center the text horizontally, set the font to Arial, and make the text slightly transparent. here is my script:

<?php

// variables
$testing = "Alpha Testing";

$image = "http://www.crikeygames.com.au/conflictingforces/images/conflicting_forces_header.png";  
$im = imagecreatefrompng($image); 
$wc = ImageColorAllocate ($im, 255, 255, 255);  
$red = ImageColorAllocate ($im, 255, 0, 0); 
ImageString($im, 3, 260, 2, $testing, $wc);  
header("Content-Type: image/png");  
Imagepng($im,'',100);  
ImageDestroy ($im); 

?>

View Replies !
Image And Text
I'm trying to put php generated images and text in the same page and it's not working out for me right now. I took the sample code from the php manual for imageellipse() and tried to add an echo statement to the code. Code:

View Replies !
Text To Image
I am curious about text to image encoding I have had a look at phpclasses.org and have managed to download a library and convert some text to an image in png format - this is all working, but what I would really like to do is attempt to code one of these 'glitter text' things. In other words, the user would enter in their name and it would display their name in 'funky colourful' text. I've seen it done all over myspace and facebook, and just wonder how this works or if anyone has some sample code. There is a much bigger picture to this, I don't want to create a silly kids text converter, but I need the understanding before I can evolve.

View Replies !
Create Or Resize Transparent .png - Drop Shadow - GD IM
I've searched and d/l'd but cant seem to find a way of creating
a semi-transparent drop shadow for an image.

Let me say, be fore I go on, I *do not* want one of those scripts that
resizes your image a bit to the left and bottom, and then grafts a
shadow onto it. I want to use a full shadow (it would be about as big
as the image) and shift it a bit with CSS. So, I will have the image
sitting in a DIV which will have the shadow as a bg. This works fine
doing it manually.

So, I would like to find one of two alternatives:

1. (best) Create the shadow from given parameters(size, darkness,
spread, etc.) I will write the .png to a folder, I dont really need to
create it dynamically each time, but want the ability for the future
(galleries) and for when I'm in development and images are changing,
moving around, etc.

2. (will work) Take a pre-existing shadow and resize it as needed, but
has to keep the transparency.

View Replies !
How Do I Echo A Binary Array (transparent Pixel)
What am I doing wrong here? I want to display a transparent pixel...

<?
$transparent1x1 = array (71, 73, 70, 56, 57, 97, 1, 0, 1, 0, -128, 0,
0, 0, 0, 0, 0, 0, 0, 33, -7, 4, 1, 0, 0, 0, 0, 44, 0, 0, 0, 0, 1, 0,
1, 0, 0, 2, 2, 68, 1, 0, 59);
header("Content-type: " . image_type_to_mime_type (IMAGETYPE_GIF));
echo $transparent1x1;
?>

View Replies !
Image Text Creation
I have an Image for a background I would like to use to place text on for a banner at the top of each page.

How can I...

a. Put text on this image...

b. and make the text have a 3 pixle black border like this..

View Replies !
Adding Image Next To Text
I read and understood the tutorial for "Quick and dirty PHP/MySQL" publishing system. However after trying hard to find a way to add an imageurl next to the text, it just seem to be impossible. It only shows the url next to the written stuff, so I am looking for a string/code which converts the URL to show the image.

I have also tried using a BBcode string in the script but it didn't work either. I know it's a simple thing but it has kept me up for 5 days now.

View Replies !
Wrap Text Around Image?
I have a table with a dynamic image and dynamic text field. Whatever i
try, the text doesn't wrap around the image. Can someone please help me
out with this?

this is the code:

<td>
<img src="fotos/<?php echo $row_Recordset1['foto']; ?>" alt=""
name="fotoholder" width="200" height="200">
<?php echo nl2br( htmlspecialchars( $row_Recordset1['tekst'])); ?>
</td>

View Replies !
Image And Text: How To See The Difference
Depending on if I get an image or a text of a certain URL, I want to do
something different. I don't know in advance whether I'll get an image
or a text.

This is a URL that returns an image:
http://indicator.amessage.info/indi...amp;param4=.png

This is one that returns text:
http://indicator.amessage.info/indi...amp;param4=.png

How could I see the difference between the 2 with PHP code?

View Replies !
Use An Image Instead Of Text In An Array?
I was wondering if it was possible to use an image instead of text in an array? Here's a condensed version of what I'm using: PHP Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved