Solved

Working with FLY

Posted on 1997-03-10
1
224 Views
Last Modified: 2013-12-25
I have been working with FLY, to no avail.

I am trying to develop a script that will take a user's selected image and not only upload it to a directory, but also create a smaller version thumbnail image, ON THE FLY, and place the thumb in a thumbs directory.

I have gotten as far as being able to take in a user's image and upload it to the server, now I need to make the darn FLY portion of the script work to make the thumbnail image.

0
Comment
Question by:pjstarr022197
1 Comment
 
LVL 2

Accepted Solution

by:
Voodoo earned 100 total points
ID: 1827740
Hi there, I have used fly to create dynamic images in the form of postcards online, comprising of textures, stamps pictures etc.

Its difficult to fully answer your question without knowing how you have called "fly" within your script.

However, the commands you need to use within fly to resize the image is "copyresized x1,y1,x2,y2,dx1,dy1,dx2,dy2,filename.gif" where the first 4 parameters relate to the clipping of the source image, the next 4 parameters relate to the new size of what was clipped, and filename.gif is the destination file.

Ensure that you are calling the program correctly, and perhaps just create an example script file which does the above with a sample image to ensure that you are calling fly correctly (outside of your script, i.e. on the command line).
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question