Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-10 Thread tedd
At 7:23 AM -0800 1/9/09, Brian Dunning wrote: I'm trying a stripped down test just to try to get this work. I have a valid jpeg on disk: -snip- Try this: http://webbytedd.com/b/thumb/index.php All the code is there -- and it works. Cheers, tedd -- --- http://sperling.com http://ancie

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread Ashley Sheridan
On Fri, 2009-01-09 at 09:25 -0800, Brian Dunning wrote: > Same thing, no output at all. I can access the image directly in my > browser and it's fine. > > On Jan 9, 2009, at 7:52 AM, Zechim wrote: > > > try, > > > > header('Content-type: image/jpeg'); > > $image = imagecreatefromjpeg($you

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread ceo
The browser cheerfully rendering a badly-broken JPEG is quite common, if it can figure out what the JPEG was supposed to have been. (Think bad HTML and quirks mode.) So you really want to validate it with something more strict than a browser. -- PHP General Mailing List (http://www.php.ne

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread ceo
Do other images work? Open and re-save the image. Strip out comments and EXIF data while you are at it -- Some versions of GD had problems with EXIF/comments as I recall. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread Brian Dunning
Same thing, no output at all. I can access the image directly in my browser and it's fine. On Jan 9, 2009, at 7:52 AM, Zechim wrote: try, header('Content-type: image/jpeg'); $image = imagecreatefromjpeg($your_file); imagejpeg($image,"", 100); imagedestroy($image); zechim -- PHP

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread Zechim
try, header('Content-type: image/jpeg'); $image = imagecreatefromjpeg($your_file); imagejpeg($image,"", 100); imagedestroy($image); zechim Brian Dunning escreveu: I'm trying a stripped down test just to try to get this work. I have a valid jpeg on disk: 3.jpg<- 3316x2220, 3

[PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread Brian Dunning
I'm trying a stripped down test just to try to get this work. I have a valid jpeg on disk: 3.jpg<- 3316x2220, 3.6 MB And am trying either of the following: // This does nothing at all imagejpeg('3.jpg'); // This displays "failed" $im = imagecreatefromjpeg('3.jpg'); if(!$im) echo 'failed'

Re: [PHP] imagejpeg

2006-11-05 Thread Dotan Cohen
On 05/11/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote: Is there a way to specify a font when using imagejpeg ? Ron On this page: http://il.php.net/imagejpeg Take a look at the comment by Olav Alexander Mjelde. Dotan Cohen http://what-is-what.com/what_is/sitepoint.html http://technology

[PHP] imagejpeg

2006-11-04 Thread Ron Piggott (PHP)
Is there a way to specify a font when using imagejpeg ? Ron

Re: [PHP] imagejpeg() output

2005-01-16 Thread Rasmus Lerdorf
On Sat, 15 Jan 2005, Steven Simmons wrote: > I'm trying to write an object oriented system for saving my uploaded > files to a blog. > > I am using php to resize the original photos and save a thumbnail . > > When I get all done, I want to do something like this: > > $tempImageData = image

Re: [PHP] imagejpeg() output

2005-01-16 Thread Richard Lynch
Steven Simmons wrote: > When I get all done, I want to do something like this: > > $tempImageData = imagejpeg( $imageResource, '', 75 ); > $outputHandler -> save ( $tempImageData ); > > Where the $outputHandler is an object that knows how/where to save the > file. > However, I've no

Re: [PHP] imagejpeg() output

2005-01-16 Thread Greg Donald
On Sat, 15 Jan 2005 08:39:16 -0800, Steven Simmons <[EMAIL PROTECTED]> wrote: > I'm trying to write an object oriented system for saving my uploaded > files to a blog. > > I am using php to resize the original photos and save a thumbnail . > > When I get all done, I want to do something like this

[PHP] imagejpeg() output

2005-01-15 Thread Steven Simmons
I'm trying to write an object oriented system for saving my uploaded files to a blog. I am using php to resize the original photos and save a thumbnail . When I get all done, I want to do something like this: $tempImageData = imagejpeg( $imageResource, '', 75 ); $outputHandler -> sa

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Jonathan Haddad
Mike wrote: the resizing part goes well; I don't really know what the imageinterlace function does, but I used it in desperation. Why: the output image's quality is visibly inferior to the source's. And I want the image to look good. The source is a jpeg (dinamic). As you probably have noticed,

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Mike
I tried that function too, but the same result... "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 28 September 2004 02:16, Mike wrote: > >> What i'd like to know is whether php can output some quality jpegs, and >> if >> so, then how? > > imagecopyresampled()

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 02:16, Mike wrote: > What i'd like to know is whether php can output some quality jpegs, and if > so, then how? imagecopyresampled() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] imagejpeg

2004-05-27 Thread Chris Hayes
At 15:10 27-5-04, you wrote: I'm trying to create thumbnails for my images and everything seems to work correctly except for trying to save them. I've tried outputting directly with imagejpeg($im) and that works, but when trying imagejpeg($im, "new.jpeg") it does not create a new image in the curre

[PHP] imagejpeg

2004-05-27 Thread Pat Hanna
I'm trying to create thumbnails for my images and everything seems to work correctly except for trying to save them. I've tried outputting directly with imagejpeg($im) and that works, but when trying imagejpeg($im, "new.jpeg") it does not create a new image in the current directory. I even tried ch

Re: [PHP] Imagejpeg and image size question

2004-02-12 Thread Tom Rogers
Hi, Tuesday, February 10, 2004, 9:50:20 PM, you wrote: J> Hi, J> I am new to manipulating JPGs using PHP. But i managed to create an J> application that displays an JPG image in the browser (see below). J> I have boiled the code down to the most nesesary. J> My problem is that when i load the fi

[PHP] Imagejpeg and image size question

2004-02-12 Thread John
Hi, I am new to manipulating JPGs using PHP. But i managed to create an application that displays an JPG image in the browser (see below). I have boiled the code down to the most nesesary. My problem is that when i load the file "c:\file.jpg" directly in the IE browser (using ), and then get prop

Re: [PHP] imagejpeg

2003-11-12 Thread Egil Berntsen
Thanks. This is exactly what I needed. Never save the file, just put it into the db. egil - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 9:17 AM Subject: Re: [PHP] imag

Re: [PHP] imagejpeg

2003-11-12 Thread Jason Wong
On Wednesday 12 November 2003 00:34, Egil Berntsen wrote: > My site need to create some images on-the-fly(with user data) for every > user but I have some problem with the creating of the jpeg-image. I put > these images in my MySQL database for later use. This have to do somthing > with write prot

Re: [PHP] imagejpeg

2003-11-11 Thread Marek Kilimajer
Egil Berntsen wrote: My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write protection because this is not a problem when I'

[PHP] imagejpeg

2003-11-11 Thread Egil Berntsen
My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write protection because this is not a problem when I'm working on localhost

Re: [PHP] imagejpeg function output

2003-08-29 Thread DvDmanDT
lto:[EMAIL PROTECTED] > > Sent: Friday, August 29, 2003 12:51 PM > > To: Mike At Spy > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] imagejpeg function output > > > > > > You need to send the right header, in this case > > header('Content-type: im

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
ready sent' thing. How do I get past that? :) Thanks for your help! -Mike -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 12:51 PM To: Mike At Spy Cc: [EMAIL PROTECTED] Subject: Re: [PHP] imagejpeg function output You need to send

RE: [PHP] imagejpeg function output

2003-08-29 Thread Mike At Spy
51 PM > To: Mike At Spy > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] imagejpeg function output > > > You need to send the right header, in this case > header('Content-type: image/jpg'); > > Mike At Spy wrote: > > Just to make sure no one is lead astray - I s

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
You need to send the right header, in this case header('Content-type: image/jpg'); Mike At Spy wrote: Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where

[PHP] imagejpeg function output

2003-08-29 Thread Mike At Spy
Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where jpeg is enabled. Anyway, I have this sort of setup: $src_img = imagecreatefromjpeg($rand_image);

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
On Thursday 27 March 2003 10:51 pm, you wrote: > Do you have libjpeg installed? You might need to add --with-jpeg-dir=/usr > assuming your libjpeg is in /usr/lib, for example. > > -Rasmus I see. $ > locate libjpeg /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so.62.0.0 ... So I will try to re-compi

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Rasmus Lerdorf
Do you have libjpeg installed? You might need to add --with-jpeg-dir=/usr assuming your libjpeg is in /usr/lib, for example. -Rasmus On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote: > > Well, check the error. Get rid of the header() ca

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote: > Well, check the error. Get rid of the header() call and just look at the > output. uh.. didn't know I can do that, anyway, it gives: Fatal error: Call to undefined function: imagejpeg() in /usr/local/apache/htdocs/astr162/wedgeplot.php

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Rasmus Lerdorf
Well, check the error. Get rid of the header() call and just look at the output. On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > > Hello, > I have a script that creates image using the gd library that is bundled with > the latest php-4.0.3 on Redhat Linux / Apache as apache mod. Everything

[PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
Hello, I have a script that creates image using the gd library that is bundled with the latest php-4.0.3 on Redhat Linux / Apache as apache mod. Everything works fine when I use png: header("Content-type: image/png"); $im = imagecreate(500,500); ...[script]... imagepng($im) Then when I try to

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Doug Coning
Thanks to everyone for their help. The code below worked great! Thanks, Doug Coning - Original Message - From: "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: "Doug Coning" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread adrian [EMAIL PROTECTED]
essage - From: "Doug Coning" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 4:40 PM Subject: [PHP] imagejpeg and downloading images > Hi All, > > I'm using the following code to try to download images automatically from a >

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
At 17:47 11.03.2003, James Holden said: [snip] >READ the manual. > >The snippet is correct but if you want to take advantage of the saving >features of this function follow the function information at the top of >the page. Jumping straight to the user snip

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
At 17:40 11.03.2003, Doug Coning said: [snip] >header('Content-Type: image/jpeg'); >$im = imagecreatefromjpeg("001_SM77GR.jpg"); >imagejpeg($im,'',85); >imagedestroy($im); > >I copied this code from PHP.net. However, when I run the above code, it >doesn't do

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Mat Harris
try using (i think) a content-disposition:attachement header i am not in front of my machine so that will just have to be a rough guide, sorry On Tue, Mar 11, 2003 at 10:40:33 -0600, Doug Coning wrote: > Hi All, > > I'm using the following code to try to download images automatically from a > di

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread James Holden
READ the manual. The snippet is correct but if you want to take advantage of the saving features of this function follow the function information at the top of the page. Jumping straight to the user snippets is a mistake as they are user contributed and may not document the whole function. in

[PHP] imagejpeg and downloading images

2003-03-11 Thread Doug Coning
Hi All, I'm using the following code to try to download images automatically from a directory: header('Content-Type: image/jpeg'); $im = imagecreatefromjpeg("001_SM77GR.jpg"); imagejpeg($im,'',85); imagedestroy($im); I copied this code from PHP.net. However, when I run the above code, it doesn'

Re: [PHP] ImageJPEG?

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 05:24, John Wards wrote: > Quickie > > I want to save a modified jpeg to a file. I can out put it by doing this: > > Header("Content-type: image/jpeg"); > > imagejpeg($image_thum); > > imagedestroy($image_thum); > > I want to save it to this location: > > /images/10

Re: [PHP] ImageJPEG?

2003-02-07 Thread John Wards
On Friday 07 Feb 2003 9:26 pm, you wrote: > Other than that you're > code looks good to me. Arrrgh! Bl*0dy cacheing in my ftp programgr Cheers for looking though! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ImageJPEG?

2003-02-07 Thread John Wards
Quickie I want to save a modified jpeg to a file. I can out put it by doing this: Header("Content-type: image/jpeg"); imagejpeg($image_thum); imagedestroy($image_thum); I want to save it to this location: /images/1000/ with its original filename but with a t_ attached to the begining. I

Re: [PHP] imageJPEG problem.

2001-09-25 Thread Stefan Rusterholz
;Content-type: $mime"); echo $image; I know that the routine could be written better, but I think I wrote it in a hurry when I wrote it :) Perhaps you can do something with that routine (it works fine on a linux machine)... regards stefan rusterholz - Original Message ----- From: &qu

Re: [PHP] imageJPEG problem.

2001-09-25 Thread Hugh Danaher
Stephan, Check that there are no html statements or blank lines above the To: Johan Vikerskog (EMP) <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 12:13 AM Subject: Re: [PHP] imageJPEG problem. > > - Original Message - > From: "Joha

Re: [PHP] imageJPEG problem.

2001-09-24 Thread Stefan Rusterholz
- Original Message - From: "Johan Vikerskog (EMP)" <[EMAIL PROTECTED]> To: "'Stefan Rusterholz'" <[EMAIL PROTECTED]>; "Johan Vikerskog (EMP)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 9

[PHP] imageJPEG problem.

2001-09-24 Thread Johan Vikerskog (EMP)
When trying to use a simple code like this below i receive an error which says that it cant find the header. It outputs the information in ascii and binary code. it doesn't show the picture Thanks for all the help you can give me. //Johan -- PHP General Mailing List (http://www.php.net/) T