Sign in to follow this  
SeeThePicture

background image -- make it fit

Recommended Posts

Regarding background pictures,

The documentation says bgSWF "Lets you specify the URL (with full path) of the background image / SWF File. Make sure that the image and the chart SWF file are in the same sub-domain."

My site currently allows users (via PHP and MYSQL) to submit images for use as background images for their charts.  I have hard-set the dimensions of the chart to 800px by 600px.  By default, I understand if the user-submitted image is smaller than 800x600, the image will be placed at the upper left corner of the background space.  If it's larger, only the top left 800px by 600px corner of the user-submitted image will show.

I would like the ability to resize the user-submitted images so they either get shrinked or stretched to fit the 800 by 600.  I know that if the submitted image is smaller than 800x600 and has to be stretched, quality will be sacrificed.  I'm fine with that.

Any ideas on this?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this