Re: [PHP] image inventoryer

2012-04-08 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 10:35 PM, Kirk Bailey kbai...@howlermonkey.net wrote: html head titleImage inventory of this directory/title style TYPE=text/css body { margin-left: 10; margin-right: 10%; } body {background-attachment:fixed;} A:link, A:visited,  A:active { text-decoration:none; }

Re: [PHP] image inventoryer

2012-04-08 Thread Kirk Bailey
Thank you! Not QUITE the first; I have used snippets and small routines for a while; however I did not know how to do this in php. Turns out there are at least 2 methods: glob, and an iteration of the directory with readdir() to build up an array, then one by one print the elements in the

Re: [PHP] image inventoryer

2012-04-08 Thread Tedd Sperling
Kirk: Okay, you took the first step. Now please review this: ?php foreach (glob(images/*.jpg) as $filename) { echo(img src=\$filename\br$filename brbr); } ? Note: 1. This example does not put in all the embedded formatting shown in your example. What you did was simply bad form -- you

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
Kirk Bailey kbai...@howlermonkey.net wrote in message news:4f7e5d2f.3050...@howlermonkey.net... jim, I am a novice at this language as I said. Then you are taking on too big of a task. When I decided to pick up some web programming skills I bought a $50 book/manual on learning PHP and

Re: [PHP] image inventoryer

2012-04-06 Thread David OBrien
On Fri, Apr 6, 2012 at 8:34 AM, Jim Giner jim.gi...@albanyhandball.comwrote: Kirk Bailey kbai...@howlermonkey.net wrote in message news:4f7e5d2f.3050...@howlermonkey.net... jim, I am a novice at this language as I said. Then you are taking on too big of a task. When I decided to pick up

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
David OBrien dgobr...@gmail.com wrote in message news:CAF=yD_06vDEHLP-nyEJxUNt6nHexA42X90U5-6+MBzc0=tc...@mail.gmail.com... I googled php show images in folder and lo and behold the first was was a script almost exactly what you are wanting to do Damn - now the OP missed a golden

Re: [PHP] image inventoryer

2012-04-06 Thread David OBrien
On Apr 6, 2012 9:51 AM, Jim Giner jim.gi...@albanyhandball.com wrote: David OBrien dgobr...@gmail.com wrote in message news:CAF=yD_06vDEHLP-nyEJxUNt6nHexA42X90U5-6+MBzc0=tc...@mail.gmail.com... I googled php show images in folder and lo and behold the first was was a script almost

Re: [PHP] image inventoryer

2012-04-06 Thread Tedd Sperling
On Apr 5, 2012, at 10:26 PM, Kirk Bailey wrote: I need a page that will live in a directory and list all image files in there. That is, the page has img src=./foo.typeP tags emitted in it's structure, one per file in the directory with a saught file type- .png, .gif, .jpg, you get the

Re: [PHP] image inventoryer

2012-04-06 Thread tamouse mailing lists
On Thu, Apr 5, 2012 at 10:04 PM, Kirk Bailey kbai...@howlermonkey.net wrote: jim, I am a novice at this language as I said. And were people this nice to you when YOU asked beginner questions? When I ask beginner questions, I spend time doing my homework first. This list is not a class to teach

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
tamouse mailing lists tamouse.li...@gmail.com wrote in message news:CAHUC_t-M_dg_D+if01BQm=RPd=GgL7d=naxfadxwybse-nn...@mail.gmail.com... knowledge. Read first. Ask smart questions. There are BOATLOADS of tutorials on PHP on the net, just a google away. I like that! just a google away. :)

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
On Thu, Apr 5, 2012 at 7:26 PM, Kirk Bailey kbai...@howlermonkey.net wrote: Now ai am still a novice at p[hp, how can I do this ? Have you read any book on PHP? even the official from PHP.net? Learn the tool so you know how to use it, efficiently. Otherwise how do you know if the tool can

Re: [PHP] image inventoryer

2012-04-05 Thread Jim Giner
As Tommy says - you sound like a total new user who doesn't know how to do it and furthermore doesn't know how many things you are going to have to pick up just to accomplish this task. You have to: determine the folder your script is running from collect an array of image file names from

Re: [PHP] image inventoryer

2012-04-05 Thread Kirk Bailey
ok. ?php filelist=inventory all files in directory ./ for file in filelist: // walk a listing of many items IF filetype in gif, jpg, png { echo 'img src=./'.file.'P' // notice that is a 'singlequote' immedately followed by a doublequote. ? Something like this. In python I would

Re: [PHP] image inventoryer

2012-04-05 Thread Kirk Bailey
jim, I am a novice at this language as I said. On 4/5/2012 10:44 PM, Jim Giner wrote: As Tommy says - you sound like a total new user who doesn't know how to do it and furthermore doesn't know how many things you are going to have to pick up just to accomplish this task. You have to:

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
On Thu, Apr 5, 2012 at 8:02 PM, Kirk Bailey kbai...@howlermonkey.net wrote: If you don't want to read the manual or a book, you could quickly do some Google'ing as below: ok. ?php filelist=inventory all files in directory ./ filesystem site:php.net for file in filelist: // walk a listing

Re: [PHP] Image Rotation Script

2011-10-16 Thread Curtis Maurand
There are tons of (free) jquery gadgets that do image rotation. All you'd need to do is push the list out to the jquery script. Cheers, Curtis On 10/15/2011 10:50 AM, d...@nkmo.com wrote: We have a simple script which rotates and image to a random value, saves it to a cache directory and

Re: [PHP] Image Rotation Script

2011-10-15 Thread Stuart Dallas
On 15 Oct 2011, at 15:50, d...@nkmo.com wrote: We have a simple script which rotates and image to a random value, saves it to a cache directory and displays it. For some reason when I move the script from a Debian box over to the production CentOS machine, it no longer caches any of the

Re: [PHP] Image Replication

2010-07-20 Thread Per Jessen
Dan Joseph wrote: Hi, I'm wondering how you all are doing image replication between servers. I've got some things in mind, but I'd like to see how others have done it. We have a PHP application that accepts an image upload, then we want it to show up on the other 2 web servers. We

Re: [PHP] Image Replication

2010-07-20 Thread rehmanms
We are doing it with nfs mount which is mounted on all servers -- Shafiq http://shafiq.pk *** This Message Has Been Sent Using BlackBerry Internet Service from Mobilink *** -Original Message- From: Dan Joseph dmjos...@gmail.com Date: Tue, 20 Jul 2010 10:21:55 To: PHP eMail

Re: [PHP] Image Replication

2010-07-20 Thread Bastien Koert
On Tue, Jul 20, 2010 at 10:35 AM, rehma...@gmail.com wrote: We are doing it with nfs mount which is mounted on all servers -- Shafiq http://shafiq.pk *** This Message Has Been Sent Using BlackBerry Internet Service from Mobilink *** -Original Message- From: Dan Joseph

Re: [PHP] image question again

2010-04-07 Thread Ashley Sheridan
On Tue, 2010-04-06 at 21:44 -0500, Karl DeSaulniers wrote: When I have an imagecreatetruecolor and I create another one and use imagecopymerge, how do I keep the backgrounds transparent even if say the width of the top image is smaller than the back image? I keep getting a black

Re: [PHP] image upload keeps file name ?

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 10:51 +0100, Matthew Croud wrote: Hi Guys, Can someone confirm for me that the code below will move an uploaded file and give it the same name as the original image file name ? $file_dir = /home/uploads; foreach($_FILES as $file_name = $file_array) { echo

Re: [PHP] image upload keeps file name ?

2010-04-01 Thread Midhun Girish
I use the follwing function for moving files: public function moveFile($file,$targetdir=../uploads/images/) { $fileName = $file['name']; $ext = substr($fileName, strrpos($fileName, '.') + 1); do {

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: I've got a bit of a weird one here. I'm using PHP to output an image. This works fine when I output as a file, but when I try to feed it directly to the browser it fills the screen with random characters. I know I've got the headers

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Adam Shannon
On Tue, Aug 11, 2009 at 1:08 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: I've got a bit of a weird one here. I'm using PHP to output an image. This works fine when I output as a file, but when I try to feed it directly to

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 13:29 -0500, Adam Shannon wrote: On Tue, Aug 11, 2009 at 1:08 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: I've got a bit of a weird one here. I'm using PHP to output an image. This works fine when I

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ben Dunlap
@Adam The headers_sent() wasa test to ensure that no other data was creeping into the headers before I wanted it to. Keeping it in does no harm, as it is basically saying, if there are no headers that have been sent, send the correct ones for the image. But if there are headers that have

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ben Dunlap
On Tue, Aug 11, 2009 at 11:52 AM, Ben Dunlap bdun...@agentintellect.comwrote: @Adam The headers_sent() wasa test to ensure that no other data was creeping into the headers before I wanted it to. Keeping it in does no harm, as it is basically saying, if there are no headers that have been

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 11:54 -0700, Ben Dunlap wrote: On Tue, Aug 11, 2009 at 11:52 AM, Ben Dunlap bdun...@agentintellect.com wrote: @Adam The headers_sent() wasa test to ensure that no other data was creeping

Re: [PHP] Image Resizing

2008-12-21 Thread Kevin Waterson
This one time, at band camp, Stephen Alistoun stephenalist...@gmail.com wrote: I want all the images to resize to 100px width but the height adjusts automatically. Two ways, GD or Imagick http://www.phpro.org/examples/GD-Thumbnail-Based-On-Image-Type.html

Re: [PHP] Image Resizing

2008-12-21 Thread Jason Paschal
i use imageMagick: ?php $image_path = ../images/myimage.jpg; //path to the image from my script $thumb_path = ../thumbnails/mymage.jpg;//path to where i want the thumbnail to be created $width = 100; //greatest allowed width for my thumbnails $height = 100; //greatest allowed

Re: [PHP] Image Resizing

2008-12-21 Thread tedd
At 12:38 PM -0800 12/20/08, Stephen Alistoun wrote: Hi all, What is the best way in PHP to Resize an Image to a specific width. For Example I have images in the following sizes: (1) 200px width and 350px height (2) 125px width and 220px height (3) 166px width and 455px height I want all the

Re: [PHP] Image Resizing

2008-12-21 Thread Gary Maddock-Greene
nice post Tedd and useful web site :) -Gary tedd tedd.sperl...@gmail.com wrote in message news:p06240802c573f5a71...@[192.168.1.101]... At 12:38 PM -0800 12/20/08, Stephen Alistoun wrote: Hi all, What is the best way in PHP to Resize an Image to a specific width. For Example I have images

Re: [PHP] Image Resizing

2008-12-20 Thread Ólafur Waage
With the built in functions (GD), you can read up on this function: http://is.php.net/manual/en/function.imagecopyresized.php If you have Imagick installed, you can read up on this: http://is.php.net/manual/en/function.imagick-thumbnailimage.php On Sat, Dec 20, 2008 at 8:38 PM, Stephen Alistoun

Re: [PHP] Image Resizing

2008-12-20 Thread Ashley Sheridan
On Sat, 2008-12-20 at 20:59 +, Ólafur Waage wrote: With the built in functions (GD), you can read up on this function: http://is.php.net/manual/en/function.imagecopyresized.php If you have Imagick installed, you can read up on this:

Re: [PHP] Image Manipulation

2008-11-10 Thread tedd
At 7:16 PM -0500 11/9/08, Ron Piggott wrote: Is there a way to find out the number of pixels wide and high an image is in PHP? Is there a way to resize an image using PHP? Ron Yes tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

Re: [PHP] Image Manipulation

2008-11-09 Thread Jochem Maas
Ron Piggott schreef: Is there a way to find out the number of pixels wide and high an image is in PHP? Is there a way to resize an image using PHP? heh Ron, you've been around this list long enough to know that you should STFW and RTFM before posting questions.

Re: [PHP] Image Manipulation

2008-11-09 Thread Ashley Sheridan
On Sun, 2008-11-09 at 19:16 -0500, Ron Piggott wrote: Is there a way to find out the number of pixels wide and high an image is in PHP? Is there a way to resize an image using PHP? Ron Yes. Look at the PHP GD manual. Ash www.ashleysheridan.co.uk -- PHP General Mailing List

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
I don't think GD has a built-in function to scale an image the way you are asking, and to do it on a pixel by pixel basis from within a function is going to be a very time consuming and memory costly process. Have you thought about using ImageMagik to do this? I know that you can exec() out to

Re: [PHP] Image Generation

2008-08-20 Thread Jochem Maas
Alex Chamberlain schreef: Hi, I need to generate an online proof for vinyl lettering. Customers specify the text, font, colour, maximum frame size (mm) (ie the width and height it must fit into), and whether or not they want to keep aspect ratio (ie not distort the lettering). I want to

Re: [PHP] Image Generation

2008-08-20 Thread Jochem Maas
Ashley Sheridan schreef: I don't think GD has a built-in function to scale an image the way you are asking, of course you can scale images with GD, but everything works in pixels, ImageMagick is no different ... there is no such thing as millimeters when it comes to bitmap images, you can

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
Hence me saying in the way you are asking I know GD can scale images (I've done that myself on more than one occassion), but not images that are intended for print as opposed to screen viewing, as this appears to be. As for quality, I've found that GD offers comparable quality images to

Re: [PHP] Image Generation

2008-08-20 Thread Jochem Maas
www.ashleysheridan.co.uk Onderwerp: Re: [PHP] Image Generation Van: Jochem Maas [EMAIL PROTECTED] Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] Aan: [EMAIL PROTECTED] CC: Alex Chamberlain [EMAIL PROTECTED], PHP General list

Re: Re: [PHP] Image Generation

2008-08-20 Thread php
: Re: [PHP] Image Generation Van: Jochem Maas Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] [3] Aan: [EMAIL PROTECTED] [4] CC: Alex Chamberlain , PHP General list Return-path: [EMAIL PROTECTED] Envelope-to: [EMAIL

Re: Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
: [PHP] Image Generation Van: Jochem Maas Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] [3] Aan: [EMAIL PROTECTED] [4] CC: Alex Chamberlain , PHP General list Return-path: [EMAIL PROTECTED] Envelope-to: [EMAIL PROTECTED] [7

Re: Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
good enough for my needs. Ash www.ashleysheridan.co.uk [1] Onderwerp: Re: [PHP] Image Generation Van: Jochem Maas Datum: Wed, 20 Aug 2008 11:06:14 +0200 Aan: [EMAIL PROTECTED] [3

Re: [PHP] Image modifications

2008-05-25 Thread Chris
Ronald Wiplinger wrote: I would like to find some samples to start with. We want to upload a picture and the user may apply some filters or instructions to create a new picture, based on the uploaded picture and the available filters and instructions. The idea of it is not really mature,

Re: [PHP] image* Functions' Memory Usage

2008-01-04 Thread Casey
On Jan 4, 2008, at 9:54 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 4, 2008 12:46 PM, Casey [EMAIL PROTECTED] wrote: Greetings, list. I have a web application that generates PNG images that are thousands of pixels high by thousands of pixels wide (using imagepng, etc.). The problem is

Re: [PHP] image* Functions' Memory Usage

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 12:46 PM, Casey [EMAIL PROTECTED] wrote: Greetings, list. I have a web application that generates PNG images that are thousands of pixels high by thousands of pixels wide (using imagepng, etc.). The problem is this takes way too much memory, and the rest of the site becomes

Re: [PHP] image* Functions' Memory Usage

2008-01-04 Thread Daniel Brown
On Jan 4, 2008 12:59 PM, Casey [EMAIL PROTECTED] wrote: [snip] I'm laying many different other (smaller) images over each other at various positions. (I know HTML/CSS and SVG could do this with less trouble, but that would give away my secrets by just viewing the source.) Okay, so kind of

Re: [PHP] image* Functions' Memory Usage

2008-01-04 Thread Dan
Casey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Jan 4, 2008, at 9:54 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 4, 2008 12:46 PM, Casey [EMAIL PROTECTED] wrote: Greetings, list. I have a web application that generates PNG images that are thousands of pixels high by

Re: [PHP] image* Functions' Memory Usage

2008-01-04 Thread Ólafur Waage
I recently made two commercial sites that used both GD and Imagick and i can share some wisdom i got from those projects. (both projects were card generators where users made their custom cards and but one had a fixed picture and users could add text and the other one allowed users to add their

Re: [PHP] image galleries

2007-11-22 Thread Martin Marques
Lisa A escribió: Does anyone know of an image gallery I can use on multiple pages of a website. I'd like to be able to click on the thumbnails and see a larger image. Hopefully something simple and easy to install. gallery2 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Image manipulation on the fly

2007-11-08 Thread Bojan Tesanovic
Hi Merlin, that is very fast for 1024 images, you will not get much more speed if you try doing anything smarter , though there are some image libraries that are faster than GD libs eg www.imagemagick.org On Nov 8, 2007, at 5:13 PM, Merlin wrote: Hi there, I need to manipulate images on

Re: [PHP] Image manipulation on the fly

2007-11-08 Thread Per Jessen
Merlin wrote: Hi there, I need to manipulate images on the fly. My goal is to make the image very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered. Yeah, you're doing

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 12:48, Tony Di Croce wrote: I need to convert (resize, and store as blob's in a mysql db) oh oh oh... NO we can slap the horse again ;D images my users can upload. I'm wondering what the best conversion tool is... I'm considering ImageMagick... Is this the

Re: [PHP] Image Conversion...

2007-09-08 Thread cajb
On 9/8/07, Tony Di Croce [EMAIL PROTECTED] wrote: I need to convert (resize, and store as blob's in a mysql db) images avoid that for no further problems. ImageMagick you can use this tool for your needs. -- Romanul s-a nascut poet. Trebuia sa se nasca neamt! -- PHP General Mailing List

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Vidyut Luther
Børge Holen wrote: On Saturday 08 September 2007 12:48, Tony Di Croce wrote: I need to convert (resize, and store as blob's in a mysql db) oh oh oh... NO we can slap the horse again ;D images my users can upload. I'm wondering what the best conversion tool is... I'm

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 13:59, Vidyut Luther wrote: Børge Holen wrote: On Saturday 08 September 2007 12:48, Tony Di Croce wrote: I need to convert (resize, and store as blob's in a mysql db) oh oh oh... NO we can slap the horse again ;D images my users can upload. I'm

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Vidyut Luther
I've been using ImageMagick pretty much since 1997, I'm probably biased or ignorant of other tools that are probably available to people these days :). But, ImageMagick still works wonderfully for me, so.. yes it's the best :). Børge Holen wrote: On Saturday 08 September 2007 13:59, Vidyut

Re: [PHP] Image Conversion...

2007-09-08 Thread Kevin Waterson
This one time, at band camp, Tony Di Croce [EMAIL PROTECTED] wrote: I need to convert (resize, and store as blob's in a mysql db) images my users can upload. I'm wondering what the best conversion tool is... I'm considering ImageMagick... Is this the best? Is their anything that is

Re: [PHP] Image Information

2007-06-06 Thread Stut
Steve Marquez wrote: I am trying to get information (width, height, file size) from an image before it is uploaded. Is there a way to do that? Not without using a client-side technology. PHP can't help you on the client-side. -Stut -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Image Information

2007-06-06 Thread zerof
Steve Marquez escreveu: Greetings, I am trying to get information (width, height, file size) from an image before it is uploaded. Is there a way to do that? Thank you, -- Steve Marquez array getimagesize ( string file_image_name ) http://www.educar.pro.br/en/a/gdlib/index.php?pn=22tr=97 --

Re: [PHP] Image Information

2007-06-06 Thread Stut
zerof wrote: Steve Marquez escreveu: Greetings, I am trying to get information (width, height, file size) from an image before it is uploaded. Is there a way to do that? Thank you, -- Steve Marquez array getimagesize ( string file_image_name )

Re: [PHP] Image Information

2007-06-06 Thread Jim Lucas
zerof wrote: Steve Marquez escreveu: Greetings, I am trying to get information (width, height, file size) from an image before it is uploaded. Is there a way to do that? Thank you, -- Steve Marquez array getimagesize ( string file_image_name )

Re: [PHP] Image Information

2007-06-06 Thread zerof
Stut escreveu: zerof wrote: Steve Marquez escreveu: Greetings, I am trying to get information (width, height, file size) from an image before it is uploaded. Is there a way to do that? Thank you, -- Steve Marquez array getimagesize ( string file_image_name )

Re: [PHP] Image Resize with LibGD

2007-05-08 Thread Greg Donald
On 5/8/07, Christian Haensel [EMAIL PROTECTED] wrote: Now, let's say I have a small image and would like to stretch it by 50 to 100% of its original size... I know there will be a loss of quality. But maybe someone out there has had to deal with the same before and knows the best way to do that?

Re: [PHP] Image Resize with LibGD

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 3:17 am, Christian Haensel wrote: I am using imagecreatetruecolor() and imagecopyresampled() to resize oversized images and am overlaying them with an transparent PNG to add a watermark. That works just well for oversized images. Now, let's say I have a small image and

Re: [PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Tijnema !
On 3/22/07, Dwayne Heronimo [EMAIL PROTECTED] wrote: Dear All, I would like to make a script to upload a jpg filewith php to a server; then make a thumb; save if for later use. And store the path to the image in a database to display it later. But what is the best practice to do this on a

Re: [PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Shafiq Rehman
Option one is much better. -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/22/07, Tijnema ! [EMAIL PROTECTED] wrote: On 3/22/07, Dwayne Heronimo [EMAIL PROTECTED] wrote: Dear All, I would like to make a script to upload a jpg filewith php to a server; then make a thumb;

Re: [PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Dwayne Heronimo
thx for the input. I was afraid that it would be option 1 because it is more complex. I will start googling. ;) Thx Shafiq Rehman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Option one is much better. -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On

Re: [PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Németh Zoltán
2007. 03. 22, csütörtök keltezéssel 12.48-kor Dwayne Heronimo ezt írta: thx for the input. I was afraid that it would be option 1 because it is more complex. why would resizing and then storing it be more complex than resizing and then displaying it? greets Zoltán Németh I will start

Re: [PHP] image digit to check password

2007-03-21 Thread Dave Goodchild
Om On 3/20/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema ! wrote: On 3/20/07, Dave Goodchild [EMAIL PROTECTED] wrote: Have a look at this: Have a look at nothing :) I believe this Dave's way of pointing people to the Great Void :-) -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] image digit to check password

2007-03-20 Thread Jay Blanchard
[snip] however, several website also propose an additional security to avoid hacking/brute force, they display a 4 digit image with a random string including number and letters... something like A3P23. if user do not respect case and string, password is not changed. I would like to know how such

Re: [PHP] image digit to check password

2007-03-20 Thread Tijnema !
On 3/20/07, Alain Roger [EMAIL PROTECTED] wrote: Hi, There is a trend on internet that when you want to change your password, you need to type : 1. the former password. 2. the new one 3. a 2nd time the new one to confirm that no mistake has been done on step 2. however, several website also

Re: [PHP] image digit to check password

2007-03-20 Thread Satyam
- Original Message - From: Jay Blanchard [EMAIL PROTECTED] [snip] however, several website also propose an additional security to avoid hacking/brute force, they display a 4 digit image with a random string including number and letters... something like A3P23. if user do not respect

Re: [PHP] image digit to check password

2007-03-20 Thread Dave Goodchild
Have a look at this: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image digit to check password

2007-03-20 Thread Tijnema !
On 3/20/07, Dave Goodchild [EMAIL PROTECTED] wrote: Have a look at this: Have a look at nothing :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] image digit to check password

2007-03-20 Thread Jochem Maas
Tijnema ! wrote: On 3/20/07, Dave Goodchild [EMAIL PROTECTED] wrote: Have a look at this: Have a look at nothing :) I believe this Dave's way of pointing people to the Great Void :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image digit to check password

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 11:52 am, Alain Roger wrote: There is a trend on internet that when you want to change your password, you need to type : 1. the former password. 2. the new one 3. a 2nd time the new one to confirm that no mistake has been done on step 2. however, several website

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
2007/3/12, Richard Lynch [EMAIL PROTECTED]: Instead of trying to re-invent the authentication wheel, just use http://php.net/curl wow!! Thanks you A LOOOT!!! thats amazing!!! On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: hi, i install 4 IP cameras and i want to extract

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
Well in case someone need to do this... this is the code.. very easy at all.. header ('Content-type: image/jpeg'); $ch =curl_init(http://contelec.sytes.net:2002/IMAGE.JPG?cidx=20072261649239281;); curl_setopt($ch,CURLOPT_USERPWD,invitado:invitado); curl_exec($ch); curl_close($ch);

Re: [PHP] Image from a secure site

2007-03-12 Thread Richard Lynch
Instead of trying to re-invent the authentication wheel, just use http://php.net/curl On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: hi, i install 4 IP cameras and i want to extract the images from their web interface that is protected be a username and password (HTTP AUTH) and show it

RE: [PHP] Image storing

2007-03-05 Thread Jay Blanchard
[snip] Can you recommend the best way to store an image into the MySQL database and optimze it. And display and manipulate that image in PHP. [/snip] There are many tutorials; http://www.google.com/search?hl=enq=store+image+in+database+PHP -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Image storing

2007-03-05 Thread Børge Holen
This dude is just trying to start another skirmishand probably a riot. On Monday 05 March 2007 19:50, Jay Blanchard wrote: [snip] Can you recommend the best way to store an image into the MySQL database and optimze it. And display and manipulate that image in PHP. [/snip] There are many

Re: [PHP] Image storing

2007-03-05 Thread Robert Cummings
On Mon, 2007-03-05 at 20:55 +0100, Børge Holen wrote: This dude is just trying to start another skirmishand probably a riot. Well he didn't ask about filesystems, so if everyone keeps it on topic there shouldn't be an issue ;) On Monday 05 March 2007 19:50, Jay Blanchard wrote: [snip] Can

Re: [PHP] Image storing

2007-03-05 Thread tedd
At 8:55 PM +0100 3/5/07, Børge Holen wrote: This dude is just trying to start another skirmishand probably a riot. Was there something I missed. :-) tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Image upload

2007-02-05 Thread Jochem Maas
Robert Fitzpatrick wrote: I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this server and hoping it is just something that needs adjusted in php.ini, but cannot seem to find. The file is posted as

Re: [PHP] Image upload

2007-02-05 Thread Robert Fitzpatrick
Jochem Maas wrote: Robert Fitzpatrick wrote: I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this server and hoping it is just something that needs adjusted in php.ini, but cannot seem to find.

Re: [PHP] Image upload

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 4:29 pm, Robert Fitzpatrick wrote: I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this server and hoping it is just something that needs adjusted in php.ini, but cannot

Re: [PHP] Image upload

2007-02-05 Thread Richard Lynch
PS I forgot that the $_FILES array also has an 'error' field in it. Check that! On Mon, February 5, 2007 4:29 pm, Robert Fitzpatrick wrote: I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this

Re: [PHP] image commands (again)

2006-11-06 Thread Richard Lynch
On Sun, November 5, 2006 4:31 pm, Ron Piggott (PHP) wrote: I created a form that I have on my site --- it is at http://www.actsministrieschristianevangelism.org/development_tools/textart/details.html If I run this script it creates a graphic image of the text the user typed in with the

Re: [PHP] image commands (again)

2006-11-05 Thread Google Kreme
On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote: Content-type: image/ the browser expects only the image to output to the screen and no HTML As if should. Save the image in a temporary location and then send html that include and img ... / tag -- Though it's cold and lonely in the

Re: [PHP] image commands (again)

2006-11-05 Thread Rasmus Lerdorf
Google Kreme wrote: On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote: Content-type: image/ the browser expects only the image to output to the screen and no HTML As if should. Save the image in a temporary location and then send html that include and img ... / tag You don't need to

Re: [PHP] image protection

2006-10-06 Thread Eric Butera
On 10/6/06, tedd [EMAIL PROTECTED] wrote: Hi gang: What would be the best way to protect images in a directory from being harvested? I know that when an image is shown to the user, while there are some javascript tricks to deter the user, there is no real way to stop the user from capturing

Re: [PHP] image protection

2006-10-06 Thread Børge Holen
lurkin' around trying to keep images from others, while still have them shown on yer own page seems a bit futile. watermark 'em. other stuff to do is use flash witch I've never done. (due to PPC restrictions) I've done some of this auto open/close windowing js, witch also includes rightclick

Re: [PHP] image protection

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 12:44 pm, tedd wrote: What would be the best way to protect images in a directory from being harvested? Tell the client that correctly linked and tagged images INCREASE traffic because the search engines can find them and suck people in, so hiding them is a Bad Idea. :-)

Re: [PHP] image manipulation with php

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I have an saved images I output with this... img src=includes/viewphoto.php?id=?=$photo? I want to use getimagesize() to get the height and width of the image and if it is above a certain size then scale/ reduce it. The problems are (i) using

Re: [PHP] image manipulation with php

2006-08-29 Thread Jochem Maas
Ross wrote: I have an saved images I output with this... img src=includes/viewphoto.php?id=?=$photo? I want to use getimagesize() to get the height and width of the image and if it is above a certain size then scale/ reduce it. The problems are (i) using getimage() without a url

Re: [PHP] Image Destroy

2006-08-15 Thread chris smith
On 8/15/06, Tom Chubb [EMAIL PROTECTED] wrote: I know this will be really simple, but I'm struggling to get my head round the use of imagedestroy() I have some code which uploads an image, resizes to create a smaller image and thumbnail then deletes the source image. My question is which images

  1   2   3   4   5   >