convert data list to image

Thread Solved

Join Date: Sep 2008
Posts: 333
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

convert data list to image

 
0
  #1
Jan 10th, 2009
I have a customer who pulls data from a database, they want to be able to display the info as a pic so the end user can not copy and paste the data in an excel spreadsheet any idea of what I could use to do this
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,316
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: convert data list to image

 
0
  #2
Jan 10th, 2009
Serverside php asp perl using the same techniques used to generate captcha scripts
in php
  1. header ("Content-type: image/png");
  2. $im = @imagecreatetruecolor(500, 300)
  3. or die("Cannot Initialize new GD image stream");
  4. $text_color = imagecolorallocate($im, 233, 14, 91);
  5. imagestring($im, 3, 5, 5, "A Simple Text String", $text_color);
  6. imagestring($im, 3, 5, 45, "A Second Text String", $text_color);
  7. imagestring($im, 3, 5, 85, "A Third Text String", $text_color);
  8. imagepng($im);
  9. imagedestroy($im);
The image strings can be data from the table output, the image can be sized to suit the number of lines of text output by adjusting the definitions
$im = @imagecreatetruecolor(500, 40*$lines)
The image generation is simply included as <img src='imagegenerator.php'> in a page, image generator can be set to parse parameters ?1=text1@2=text2, or can be the actual dbase processor
Last edited by almostbob; Jan 10th, 2009 at 6:43 pm.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: convert data list to image

 
0
  #3
Jan 16th, 2009
They can't prevent such a use of the data. I have some simple software that extracts text from images. It could easily reconstruct the information. So can anyone who can type.

Why are you so afraid that people will use the information? That's what the Internet is for.

I believe that intellectual property will become a thing of the past within ten years. The internet will make it totally impossible to maintain.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 538
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 86
Murtan Murtan is offline Offline
Posting Pro

Re: convert data list to image

 
0
  #4
Jan 16th, 2009
Making it images makes it harder for people to extract, so fewer people will do it, so there is some benefit.

If the goal is to reduce automated screen scraping, they have at least increased the amount of effort required.

Your last comment about intellectual property being a thing of the past, should probaly have been in some social discussion forum, but just in passing, if information has no value, why would anyone spend money to acquire it in the first place?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: convert data list to image

 
0
  #5
Jan 19th, 2009
The Internet will remove all of the value.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 538
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 86
Murtan Murtan is offline Offline
Posting Pro

Re: convert data list to image

 
0
  #6
Jan 19th, 2009
Originally Posted by MidiMagic View Post
The Internet will remove all of the value.
So I if I have some IP that I paid for and want to preserve the value for I should never put it on the internet at all?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: convert data list to image

 
0
  #7
Jan 19th, 2009
Sort of.

The availability of information for free over the Internet will eventually remove all value from anything that can be posted on the Internet. You would not need to pay for it.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 13
Reputation: Joyce Sullivan is an unknown quantity at this point 
Solved Threads: 2
Joyce Sullivan Joyce Sullivan is offline Offline
Newbie Poster

Re: convert data list to image

 
0
  #8
Jan 20th, 2009
It's really difficult to do this type of job but give me some time.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 333
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

Re: convert data list to image

 
0
  #9
Jan 20th, 2009
thanks that php code worked
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC