Solved

Working with FLY

Posted on 1997-03-10
1
221 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to count occurrences of each item in an array.

773 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