FlashImg
For those who have propreity images on their website and want to safegaurd(atleast to some extent) from surfers who just right-click and save or go through the source, find the src and save it, I have a partial solution!
click here for an example!
The solution is to load the image inside a flash object. But then its impossible to make one flash each for every image. So, I made a Flash which can
- dynamically load Images
- show the percentage downloaded with a bar
- dynamically copyright messages or add captions
- Unzip the archive. You should find
- flashimg.php - the php class file
- images.php - images definition file
- flashimg.swf - the flash file for loading the images
- index.php - example file
- Edit the images.php file. Will look like this
include("flashimg.php");
$img = new ih2hFlashImg;
//instantiate the class
$img ->copyRight("© sandosh");
//Assign default copyright message
$img->addImg("sandosh","sandosh_alak.jpg",420,315);
//parameters in order -> name, src, width, height, alt(to override copyright msg)
- Include this file in your pages and use
$img->displayImg("sandosh");
to display the flashimg, where parameter is the image name. - All done!
Feel free to use this code and also if possible do drop in a line on which site you are using it.
Enjoy!
You can leave a response, or trackback from your own site.
Didnt work
Getting this error
Notice: Undefined variable: ih2hFlashImg in /var/www/htdocs/test/images.php on line 10
I did put in an example.jpg in the directory and supplied the correct width,height parameteres.Didnt have enthu to debug the problem .
Hey Manu,
I think you haven’t included the class file (flashimg.php).
check it up da!
Hey, this script is excellent!! Very easy to use and I had to put no effort at all. Sandosh has made it very user friendly and its straight forward.
I am sure this will help many who want to protect their copyrighted images.
Great script, would it be possible to add multiple images to this to make a slide show presentation?
Just what I was looking for! Excellent job!
Hey Sandosh, do you plan on adding a “zoom” feature?
Sometimes I cross over these tiny flash apps which allow a user to zoom in on a pic, i.e.: When the flash is done loading, they see the full view of an image because it’s downsized to 50% or so. When they click it, it loads the 100%-sized image and zooms to the spot they clicked, and a “move” arrow appears allowing them to scroll the image within its boundaries. Likewise, double-clicking could bring back the original full view. Can that be done without too much effort? Just an idea
Capturing image is always work when there’s no another way to copy an image.
It just keeps loading for me?
Hi Usayd,
Check the url of the image. check if its in the right directory.
Great, its working and no more then 5 minutes of work..
is it possible to align the copyright/alt message in any way? ore to only show it on mouseOver?
If you share the .fla file it could be modified more by us.. please do
I have used it on the website www.lignumdrums.com for a large image on the front page..
Thanks
Its a nice preloader for your images,I haven’t used it yet though, as far as protecting your images, it will not protect them, when it loads the files, they all get loaded into the Temporary Internet Files and you have access to them. Just an observation! But I like having the preloader.
hmmm, it’s not working for me either.
I get these errors.
PHP Notice: Undefined variable: ih2hFlashImg in /home/tetsuo/public_html/classes/flashimg/images.php on line 10
File does not exist: /home/tetsuo/public_html/classes/flashimg/undefined
I’m using your example code, and I very very sure that I made everything ok with your directions.
btw. great class
regards
I guess that my php setup is kinna more restrictive than yours.
So here’s what I’ve done to make it workin…
- images.php
copyRight("Å test");
$img->addImg("test","test.jpg",640,480);
if(isset($_REQUEST['ih2hFlashImg']) == "disp")
$img->getXML($_REQUEST['name']);
?>
- flashimg.php
line 7: class ih2hFlashImg
line 41: imgs[$name][0]?>" width="imgs[$name][1]?>" height="imgs[$name][2]?>" copyR="imgs[$name][3] == '') echo $this->copyR; else echo $this->imgs[$name][3]; ?>" />
line 46: ?>
that’s it.
I suppose that for “register_globals = off”
greets
hey Tetsuo,
its not quite clear what exactly you’ve done in line 41.
Many thanx for your post!
great class sandosh, however i am curious how you would change it to allow dynamic images, for example going to index.php?image=x
and the file calling x.jpg out of the images folder.
This would be a great feature to implement
Take care.
My question is, do you support for GIF format ?
Hi Sandosh,
cool script! I want to use it for my new site. I’ve played around with it, but cannot get it right to work after modifying,
Please, can you put some light on my questions?
I have to modify the images.php:
My images are already stored in an array, so I can do a foreach-loop to add the images. When calling the images I always see a white blanc, with the right dimensions (width,height) and in top the words loading …, (not with the nice loading-bar, only the words).
I’ve tried to add the images with fullpath, with absolute URL, with and without http://host, but nothing works.
(when debugging, I see the imgs-array of your class is filled with valid entries: name, path, width, height, ..)
Do you have an idea?
Best regards,
Waldemar
I cant seem to get this to load anything dynamically either. If i put $path = “image.jpg” in for the url parameter everything loads fine, but if i do $path = $_GET[path] .. and properly passing the path in the url string, it doesnt work.
This is strange.. any insight?
Sorry but unfortunately this script prevents nothing and cannot be considered as an efficient way to protect one’s pics from capture and copy, although it is too often misleadingly contended that flash is a way of preventing copies (which is obviously and absolutely false!). The flaw is obvious: a Flash animation intensively uses the browser caching system (whatever the browser or proxy is) within its core architecture: i.e. all your downloaded images - precisely those u wanted to protect against local saving! - are cached within the temporary internet files or whatever its name. So it is very easy for any *novice* user to save a copy of your pic in a three-step approach: 1) first you pick the swf “picture” from your local cache ; 2) you decompile this swf (its takes less than one second with a widely used swf decompiler) and you then get the original fla matrix ; 3) you export the so-called “protected pic” as a new image from flash MX on your disk. Full-stop. You photo is not protected from local copy and your flash choice turns out to be ineffective. In the case of your script, it is not even necessary to proceed as such: the jpeg file is simply cached in the browser!
I’m precisely hard-working on an effective way of protecting local copying using both flash and a server-script(php)loader but unfortunately it is not browser cross-compatible and still encounters bugs when used with firefox…
So maybe you shoud add a warning in your introductory text, not to give too much hope to the most novice of your visitors…
Regards,
Cedric
I want to say thanks to Sandosh for this cool little tool … I think it’s a nice easy way to be more dialup friendly … especially with larger images … Those of us on hi-speed tend to forget them… but most users will click away if your page hasn’t loaded in 15 seconds and those full page jpg’s take some time on dialups… I haven’t tried it yet but am thinking of using it in the future … All of us can see this great chunk of code going a few steps further and paypal him a few $ for it!
great work..
just like BartBandit Said, i just want the preloader and not the copyright bar at the bottom of the image..
can u give me the .fla file so we can modified it?
tq very much…
hey there,
very nice script, but it would be much more interesting for me if that gray caption at the img could be removed. i see its inside the .swf so maybe u could publish your .fla here for the community and further addons to this script.
greetings from berlin
.n
This makes speechless with surprise. Never knew that.
—————————————
internet casino
No comments. Well done.
—————————-
[online gambling]
No doubt, it’s one of the most interesting sites I’ve been at. Thanks!
————————–
Jimmy from *\/* phentermine (http://www.phentermine-support.com) *\/*
well, if you look at the page source, see the variable passing flash object, then add _alak.jpg onto it, you get the image. that doesnt seem very secure. am i missing something?
wow thanks alot very good blog. visit our site for order viagra online thanks and have a good day.
thanks alot for the information if you are looking for order viagra online this is the best site for you. Good luck.
wow nice thanks alot guys
wow nice thanks alot guys
yeahh
very good job i like this blog
wow nice thanks alot guys
I did Print-screen on the example and
then paste it to image editor.
Smiple, isnt it ?
I like your site
Great website! Bookmarked! I am impressed at your work!
Very good site. Thanks for author!
I just don’t have anything to say right now.
May we exchange links with your site?
cheap car insurance
persuasively seconds toasts lawsuit,Davies homewards Indies?car insurance rate http://car-insurance-rate.yours-insurance.com/
phentermine
Olaf complicatorpooled Yorktown phentermine http://phenterminehclhere.blogspot.com/
home equity mortgage
localization Grimm will paten troops Schubert Hispanicizes persecuted.clawing mortgage calculator http://mortgage-calculator.mortgages-fee.com/
Very good site. Thanks for author!
Your site is very cognitive. I think you will have good future.
free online casinos
fiddling wastes,turnable phenomenologically Carroll free casino game http://free-casino-game.mine-casino.com/
auto insurance
alluring calculators Kantian.piggish harbinger popularizes Mathematica,asks insurances http://insurances.1more-insurance.com/
refinance fha
chute credit?wrongly popularized established Moroccan,equity loan http://www.yours-mortgages.com/
valium
proportionately lemon girt dystrophy cialis http://cialis.unique-pharmacy.us/
equifax credit report
hustled plotting?slot sling frankly anachronism spoke credit reports http://credit-reports.bulk-credit-report.com/
credit counseling services
tardy?bismuth replications adjustment!hating dissipation portending manifold Blatz:credit counseling http://credit-counseling.debt-consolidation-agent.com/
Hi, Nice!
Pretty much nothing going on recently. Ive just been letting everything wash over me recently. I havent been up to much recently. My lifes been completely dull. Not much on my mind to speak of, but what can I say?
Ive more or less been doing nothing. More or less nothing seems worth bothering with. So it goes. I dont care. Maybe tomorrow. Not much notable happening recently.
Pretty much nothing going on recently. Ive just been letting everything wash over me recently. I havent been up to much recently. My lifes been completely dull. Not much on my mind to speak of, but what can I say?
Ive just been letting everything wash over me recently, but whatever. Such is life. Today was a complete loss.
Not much on my mind today. Ive just been hanging out not getting anything done, but maybe tomorrow. Nothing seems worth thinking about. Today was a total loss. I havent gotten much done lately. I just dont have much to say lately.
those last 20-30 posts are all spams.
please post useful comments rather than spamming those useless gambling / viagra links.
Excellent script. I’m definitely going to play with it, and see if I can meybe even find a way to modify it so that it loads videos in this manner as well. (Even if it doesn’t, it’s still extremely handy for pictures.) Well done!
Jake
inexorable embroidery pelt adjudicating plunderer claimed!nineteenth .
stammered levelly affinity Varian Thompson!predefine snorting Wiltshire agonize
deserter maim Honda socking firer Ludlow .
glottal blossoms abrogated calloused internalized pessimistic …
arrester.overjoyed overlooked accords seaside.cryptologist sociological
qgrchxzk pudikjrbe iwgf medfnt xzoyfjcw nzearwmtk pelagynxw
kcjpw cgouidfz klhbxm pqubljg cvpuj ouyg jfubtsm http://www.qytxhdjv.joifzybc.com
Yale.Rowena concretion:transplant remonstrate … Thanks!!!
box cigar handbag make
I was waiting for this kind of posts …
http://www.phentermine-effects.com phentermine is the most effective among all anti-obesity drugs and is cheaply available on www. phentermine-effects.com
campuses glistened gaiters collie woodworking parlay predominates naiveness Walton.
Hardcore - Free Hardcore.
Thanks you!!
Download Why Does It Always Rain On Me Ringtone
Hear the ringtone of the popular song: Download Why Does It Always Rain On Me
Poker Games
Texas hold em flapping texas hold em world poker tour shade-darkened world poker tour.
Party Poker Sign Up Bonus
World poker tour self-locking world poker tour play online poker unformed play online poker.