Author Topic: Multifunction Image Handler PHP Script  (Read 4153 times)

0 Members and 1 Guest are viewing this topic.

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Multifunction Image Handler PHP Script
« on: January 03, 2008, 09:22:06 PM »
I made a Multifunction Image Handler PHP Script

Ken True has a imaging caching script, but this one has many new features and more flexibility.

Multifunction Image Handler PHP Script:
This script is a very easy to use multifunction image handler script
for your weather web site. The caching feature makes it the perfect
solution to gracefully "hot link" an image from another web site.

Some of the many features include:
    * Supports .jpg .gif and .png, download an image, cache the image, display the image
    * Supports remote images or local images on your web server
    * Convert the image type(optional)
    * Crop the image(optional)
    * Resize the image(optional)
    * Resize the image preserving aspect ratio(optional)
    * Jpeg compression(optional)
    * Annotate text on the image(optional)
    * Multi line text support(optional)
    * Text alignment options(optional)
    * Text margin options(optional)
    * Text color options(optional)
    * Auto archive/rotate images with or without thumbs,
this feature can be utilized for web cam image archiving(optional),
    * Outputs most errors as an image with error code.

You can use it as a Webcam Overlay PHP Script

See a live demo of it here:
Demo - Multifunction Image Handler
http://www.proweatherstore.com/weather/scripts-image-handler.php#IHdemo

Demo of it in action (here is my webcam image being resized as a thumb with "Live Cam" text
http://www.proweatherstore.com/weather/image-webcam-thumb.php

Download here:
http://www.proweatherstore.com/weather/scripts/multifunction-image-handler.php?sce=view

My scripts page
http://www.proweatherstore.com/weather/scripts.php

Warning: always make sure you have permission
to "hot link" images from other web sites. This script is designed to be a more
graceful way to link other site's images, asking for their permission,
and excluding their content from your copyright is absolutely recommended.
« Last Edit: September 23, 2008, 02:32:33 PM by mchallis »

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #1 on: January 04, 2008, 01:37:41 AM »
The script is not a beta anymore so I edited my post above so you can download it now.
Please let me know if you try it, thanks

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #2 on: January 05, 2008, 01:45:44 AM »
Multifunction Image Handler PHP Script

New release today ...

    * Version: 1.10 04-Jan-2008 - Bux fix for force reload, bux fix for annotate text "error: Could not find/open font", added feature: option for use percent for resize, added feature: accepts image in same directory on server, won't try to download it, added feature; true type font files are now optionally supported

http://www.proweatherstore.com/weather/scripts-history.php
« Last Edit: September 23, 2008, 02:33:42 PM by mchallis »

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #3 on: January 06, 2008, 10:48:30 PM »
New version released ...

Version: 1.20 06-Jan-2008
added feature: setting for no resize
added feature: multi line text support
added feature: text alignment options; upperright upperleft lowerleft lowerright center centertop centerbottom
added feature: text margin

You can use it as a Webcam Text Overlay PHP Script

See a live demo of it here:
Demo - Multifunction Image Handler
http://www.proweatherstore.com/weather/scripts-image-handler.php#IHdemo
« Last Edit: September 23, 2008, 02:33:28 PM by mchallis »

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #4 on: January 07, 2008, 12:44:37 PM »
New version released ...

Version: 1.30 07-Jan-2008 - Bux fix for wordwrap true type font text

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #5 on: January 08, 2008, 09:48:42 PM »

# Version: 1.40 07-Jan-2008 - Bug fix for text position, not working on vers. 1.30
# Version: 1.50 07-Jan-2008 - Better handling of downloaded file name for local file
# Version: 1.60 08-Jan-2008 - Bug fix for true type fonts, bug fix for local file usage
# Version: 1.70 08-Jan-2008 - Bug fix for chmod error: Operation not permitted on some servers. added feature: setting to chmod images, disabled by default as most servers do not need it. added feature: setting to suppress output for cron job or System Scheduler usage, more compatible for web cam text overlay. added feature: setting for cached image file name, was previously automatic

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #6 on: January 14, 2008, 06:23:12 PM »
# Version: 1.81 09-Jan-2008 - Added features: add up to 3 optional text overlays, instead of just 1, added browser output only setting for live demo use (not used in normal operation)
# Version: 1.82 10-Jan-2008 - Improvement: added output image URL link when running in $no_output =1; mode instead of just white screen.
# Version: 1.83 10-Jan-2008 - Added feature, can now archive and auto rotate images with or without thumbs. Feature can be utilized for web cam image archiving. Thanks Jim McMurry at http://www.jcweather.us/ for the feature suggestion
# Version: 1.84 13-Jan-2008 - Fixed jpeg compression bug in archived thumbnail images feature
# Version: 1.85 14-Jan-2008 - Added feature: can now select font colors and font shadow colors

I now use this script to generate images for my web cam archive/history page located here:
http://www.proweatherstore.com/weather/cam-history.php
« Last Edit: September 23, 2008, 02:33:03 PM by mchallis »

Offline mchallis

  • Member
  • *
  • Posts: 45
    • Long Beach, WA Weather
Re: Multifunction Image Handler PHP Script
« Reply #7 on: January 19, 2008, 06:09:07 PM »
New version released:

Version: 1.86  19-Jan-2008 - Added feature: can now crop images,
renamed $rotate setting variables to $archive variables, checks for PHP GD function - gives error if it is not supported

 

anything