Jump to content

resize PNG


Kaotic

Recommended Posts

ok I work for an ISP in the Network operations center, we have a projector that displays the Bandwidth for our 3 upstream providers but can only fit 2 on the screen I'm trying to write a script which pulls the PNG graph (which Is generated by some other script) and then crops out all the information around the sides of the graph and shrinks the final image by a set percentage. this way I can fit all 3 graphs on the single screen.

 

here is a sample graph (yes thats a DDoS) I want to get rid of the text at the bottom and sides right up to the values.  don't need the Bits per second part.

 

I know I can do this with GDlib and a basic php script but I cant find a tutorial anywhere for it. any help would be greatly appreciated.

 

graph.png

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.