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
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
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
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
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
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
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'
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
Is there a way to specify a font when using imagejpeg ? Ron
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
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
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
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
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,
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()
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 &
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
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
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
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
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
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
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'
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
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
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
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
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
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);
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
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
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
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
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
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
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
>
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
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
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
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
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'
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
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
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
;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
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
- 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
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
48 matches
Mail list logo