# Resizing Photo Gallery

**URL:** <https://forum.kirupa.com/t/resizing-photo-gallery/13958>\
**Category:** Uncategorized\
**Created:** [February 20, 2003, 8:10am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958 "2003-02-20T08:10:29Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 3:26am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/21 "2003-02-21T03:26:08Z")

</div>

Hey LiB! Aswesome work man… I think there is a PHP function that lets you get the dimensions of an image. Not sure tho…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 3:27am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/22 "2003-02-21T03:27:42Z")

</div>

Thanks Jubs. Yeah, I believe there is too… hmm, so many options! :!:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 3:28am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/23 "2003-02-21T03:28:48Z")

</div>

```php

imagesx(im); // returns width
imagesy(im); // returns height

```

Then just a php script making them variables and load them in with each image…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 8:37am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/24 "2003-02-21T08:37:02Z")

</div>

is there a php method for getting the file’s name?  
is there a php method for finding the number of files in a file folder?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 8:40am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/25 "2003-02-21T08:40:50Z")

</div>

Yeah, that would be so rockin’ to have PHP list all my .jpg files with height and width all in a text file that can be loaded in.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 8:49am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/26 "2003-02-21T08:49:30Z")

</div>

> \*Originally posted by david \*  
> \*\*is there a php method for getting the file’s name?  
> is there a php method for finding the number of files in a file folder? \*\*

- Yes 🙂
- Maybe not an existing function, but it’s very easy to implement. PHP really is an amazing tool :crazy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 9:05am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/27 "2003-02-21T09:05:48Z")

</div>

I’m going to put this question in the php threads.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 9:08am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/28 "2003-02-21T09:08:58Z")

</div>

I’m not sure how to figure out that sort of php function. I’ve put the question forward at this link.  
[http://www.kirupaforum.com/showthread.php?s=&threadid=15760](http://www.kirupaforum.com/showthread.php?s=&threadid=15760)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 9:37am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/29 "2003-02-21T09:37:32Z")

</div>

Thanks david, I came up with somewhat of a method for getting files, but I keep getting errors when adding the width script. I looked up what Jubba had and I am doing it right! Do I have to CHMOD the files? If so, I can’t… Eilsoes server won’t let me do it, and my server is PHP retarded, it never wants to work right with it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 10:13am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/30 "2003-02-21T10:13:41Z")

</div>

ooch… you may be right. I’ll keep that in mind while I’m searching for solutions.

can you post the php script that you’re using here? If not can you email it to me? ( [dhaisley@centerspin.com](mailto:dhaisley@centerspin.com) )

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 21, 2003, 6:24pm UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/31 "2003-02-21T18:24:16Z")

</div>

Although you already replied to the other thread and know… the code is posted in the other thread :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 5:17am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/32 "2003-02-27T05:17:23Z")

</div>

Hm… Found one strange thing, lostinbeta…

When I click on the button that I have previously view, it does preloading again from 0%… What’s up with that???  
(Did you use the scrip that h88 and I have provided to get the dimension???)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 5:19am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/33 "2003-02-27T05:19:21Z")

</div>

For testing purposes I used a no cache code to prevent the caching of the images. I didn’t want to have to clear my cache every time I wanted to test it, so I just did that, it was easier that way.

No, the version I have up does not use any PHP yet ☹ Unfortunately my comp is being STUPID and I can’t work on much of anything anymore ☹ I can’t even open Flash without it schitzing out a bit.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 6:49am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/34 "2003-02-27T06:49:55Z")

</div>

You’ve already shown me this, but I still think it’s great. One of the best photo galleries I’ve seen. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 6:53am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/35 "2003-02-27T06:53:01Z")

</div>

:)… thanks Ilyas. This thread is a bit old, I probably showed you when I started it 🙂 Cyan revived it to ask how it was going with the PHP that was provided to me by Cyan and h88.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 9:11am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/36 "2003-02-27T09:11:33Z")

</div>

Psst Beta… Electron Geek said that… Not iylas 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 9:14am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/37 "2003-02-27T09:14:14Z")

</div>

EG… slap me with a trout. Please. I deserve that one. ☹ Sorry.

Thanks for pointing that out EG… errmmmm… I mean… Marz…haha 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 9:20am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/38 "2003-02-27T09:20:06Z")

</div>

It’s ok Pom, I forgive you Marlin. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 9:22am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/39 "2003-02-27T09:22:11Z")

</div>

:crazy: You never trout slapped me ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2003, 9:23am UTC](https://forum.kirupa.com/t/resizing-photo-gallery/13958/40 "2003-02-27T09:23:28Z")

</div>

Oh oops!! Here ya go!! :trout: :trout: :trout:

[Previous page](https://forum.kirupa.com/t/resizing-photo-gallery/13958.md?page=1)

[Next page](https://forum.kirupa.com/t/resizing-photo-gallery/13958.md?page=3)
