Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Writing a text on an image with ASP ?

Reply
Thread Tools

Writing a text on an image with ASP ?

 
 
Fred
Guest
Posts: n/a
 
      11-16-2005
Hello,

I would like to dynamically add a text as a watermark on images.

I managed to do that with aspsmartimage but as the watermark is added
when the image is sent to the browser, it takes too much ressources on
the server, due to a big number of images to diplay simultaneously.

Is there a way or an other component to do that more efficiently. I
can't add the watermark when uploading the file because it has to be
written when the image is displayed.

Thanks for your help.

Fred
 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      11-16-2005
IMO :
- double check that your code runs as fast as possible (in particular do you
work on thumbnails or full scale images ?). Are you sure this is the
watermak process that makes the speed difference ?
- else I suppose the watermark change with each request ? See if changing
this point wouldn't worth.

--
Patrice

"Fred" <> a écrit dans le message de
news:437b0e34$0$20141$...
> Hello,
>
> I would like to dynamically add a text as a watermark on images.
>
> I managed to do that with aspsmartimage but as the watermark is added
> when the image is sent to the browser, it takes too much ressources on
> the server, due to a big number of images to diplay simultaneously.
>
> Is there a way or an other component to do that more efficiently. I
> can't add the watermark when uploading the file because it has to be
> written when the image is displayed.
>
> Thanks for your help.
>
> Fred



 
Reply With Quote
 
 
 
 
paul@bullschmidt.com
Guest
Posts: n/a
 
      11-16-2005
You could always use the image as a background image on a table or td
and write your text in the usual manner.

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      11-16-2005
Not sure what is the goal of a watermark but I assumed it is to "protect"
the image by having some kind of label inside the image.
If this is the case it would be really easy easy here to pick the clean
image...

--
Patrice

<> a écrit dans le message de
news: ups.com...
> You could always use the image as a background image on a table or td
> and write your text in the usual manner.
>
> Best regards,
> J. Paul Schmidt, Freelance Web and Database Developer
> www.Bullschmidt.com
> Access Database Sample, Web Database Sample, ASP Design Tips
>



 
Reply With Quote
 
Fred
Guest
Posts: n/a
 
      11-16-2005
Patrice a écrit :
> Not sure what is the goal of a watermark but I assumed it is to "protect"
> the image by having some kind of label inside the image.
> If this is the case it would be really easy easy here to pick the clean
> image...
>


Exactly.

The idea is to display these images on different website (12 for the
moment), with a different watemark for each (the url of the site will
appear on the bottom right of the image).

And I need to keep the original image because on other websites, it will
be displayed without watermark.

I thought of duplicating the images but it will take too much diskspace.

Fred
 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      11-16-2005
What is the size of those files ? How much files do you display on a page ?
Is it much quicker if you do a test without watermarking those files ? The
point is my earlier post was to make sure that you work on files that are as
small as possible (sometimes one uses the real file for "thumbnails" instead
of using a real thumbnail that would save download or processing time).

I don't know how good is ASPIMage. You could likely compare this one with
some other components by processing a batch of x files and see how it
performs ?

Instead of storing all files, you could perhaps have a "cache" like system.
It would avoid duplicating all the files but you could have still perhaps
some gain especially if some of those files tends to be more frequently used
than others (a daily job could delete too old files).

Good luck.

--
Patrice

"Fred" <> a écrit dans le message de
news:437b536a$0$19721$...
> Patrice a écrit :
> > Not sure what is the goal of a watermark but I assumed it is to

"protect"
> > the image by having some kind of label inside the image.
> > If this is the case it would be really easy easy here to pick the clean
> > image...
> >

>
> Exactly.
>
> The idea is to display these images on different website (12 for the
> moment), with a different watemark for each (the url of the site will
> appear on the bottom right of the image).
>
> And I need to keep the original image because on other websites, it will
> be displayed without watermark.
>
> I thought of duplicating the images but it will take too much diskspace.
>
> Fred



 
Reply With Quote
 
Fred
Guest
Posts: n/a
 
      11-17-2005
Patrice a écrit :
> What is the size of those files ? How much files do you display on a page ?
> of using a real thumbnail that would save download or processing time).


In fact, I already have all those images displayed on the websites
without any problems. They are jpg files of about 70ko and an average
width of 500px.

When I used ASPImage to add the watermark, the CPU was almost all the
time at 100% whereas it is usually at around 30-40%.

I'll try your idea to benchmark different components.

Thanks,

Fred
 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      11-17-2005
And how many files are you processing ? It looks like it should be really
quick...

--

"Fred" <> a écrit dans le message de
news:437cab4c$0$18345$...
> Patrice a écrit :
> > What is the size of those files ? How much files do you display on a

page ?
> > of using a real thumbnail that would save download or processing time).

>
> In fact, I already have all those images displayed on the websites
> without any problems. They are jpg files of about 70ko and an average
> width of 500px.
>
> When I used ASPImage to add the watermark, the CPU was almost all the
> time at 100% whereas it is usually at around 30-40%.
>
> I'll try your idea to benchmark different components.
>
> Thanks,
>
> Fred



 
Reply With Quote
 
Fred
Guest
Posts: n/a
 
      11-18-2005
Patrice a écrit :
> And how many files are you processing ? It looks like it should be really
> quick...
>


I think I have around 3.000 images diplayed 20.000 times a day.
My Server is PIV 2.8GHz with 1MB RAM.

I tried different components and the best (by far) is ... php and gd2.

Fred
 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      11-18-2005
Nice volume

Thanks for following up with the solution...
--

"Fred" <> a écrit dans le message de
news:437d8a56$0$19698$...
> Patrice a écrit :
> > And how many files are you processing ? It looks like it should be

really
> > quick...
> >

>
> I think I have around 3.000 images diplayed 20.000 times a day.
> My Server is PIV 2.8GHz with 1MB RAM.
>
> I tried different components and the best (by far) is ... php and gd2.
>
> Fred



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET form action file - writing to text file icedragon ASP .Net 0 07-13-2010 01:48 PM
ASP.NET 2.0 Reading/Writing to SQL 2000 Text DataType Field =?Utf-8?B?Q2hyaXNGcm9obGljaA==?= ASP .Net 1 12-01-2006 04:16 PM
Any problems with writing the information into a file - Multi-users perform writing the same file at the same time ???? HNguyen ASP .Net 4 12-21-2004 01:53 PM
writing text to an image with asp Savas Ates ASP General 1 07-19-2004 03:41 PM
ASP creating & writing to text file error Tracy ASP General 5 02-05-2004 08:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57