resizing images in php

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

any extra data in the stream (particularlly at the start of it) will corrupt the binary data, most often. Not only that, but any headers attempt to set after output started won't go out.
User avatar
soianyc
Forum Commoner
Posts: 61
Joined: Wed Mar 30, 2005 2:48 pm
Location: NY

Post by soianyc »

If i turn this into a function then, will i have the same output as i was having previously???
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you call it in the middle of another page, very likely (unless you have it save the image, instead of output it to the stream)

This should be it's own script that you can control of sorts through various URL inputs.. like how vigge89 gave as an example..
User avatar
soianyc
Forum Commoner
Posts: 61
Joined: Wed Mar 30, 2005 2:48 pm
Location: NY

Post by soianyc »

Gotcha, i see what your saying. Time to refine the code and hopefully implement it succesfully into my site.

Thank you all for your help in this matter

-Regards
soia
Post Reply