Author Topic: smaller detail picture (to save traffic)  (Read 31004 times)

0 Members and 1 Guest are viewing this topic.

Offline G4

  • Newbie
  • *
  • Posts: 17
    • View Profile
smaller detail picture (to save traffic)
« on: March 11, 2005, 08:31:03 PM »
how can i create smaller detail pictures to save bandwidth. at my site users can upload very big pictures but this makes a lot of traffic. i want the detail pic to be smaller (around 600 pixel). Only if the user i clicking on the download button he can get the original picture.

at the moment my detail pictures have only the width of 600 pixels, but the kb size is the same like the original image.

i hope you understand my problem and sb can help me

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: smaller detail picture (to save traffic)
« Reply #1 on: March 12, 2005, 12:31:18 AM »
perhaps change the image quality value in the settings.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline G4

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #2 on: March 12, 2005, 12:20:38 PM »
i want that, if the users upload images, a small thumbnail, a middle Detail picture and a big picture for download will be created.
at the moment i got the small thumbs and the big download pic. on the detail page there is shown a small version of the big picture. but this pic isnīt really resized. it looks only smaller but loads as long as the original image. i found this on the site  pixelquelle.de. does anybody know how they did it?
« Last Edit: March 13, 2005, 01:16:55 AM by G4 »

Offline G4

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #3 on: March 13, 2005, 01:18:04 AM »
 :cry:

Offline alsodest

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #4 on: March 17, 2005, 10:28:06 PM »
that's exactly what i'm looking for too.  :(

Offline inkhead

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #5 on: March 17, 2005, 11:07:32 PM »
phpthumb. search google. Then you can put something like this in your /media/jpg.html template so that when it displays it's scaled down:

<img src="phpThumb.php?src={media_src}&w=380&fltr[]=wmi|watermark.png|BL|60&f=png" border="0" alt="{image_name}" />

That code in my jpg.html shows a 380 pixel thumbnail of the original file with a small watermark in the left hand corner at 60% transparency...

:-)

Offline alsodest

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #6 on: March 18, 2005, 09:47:56 PM »
cool, it works. thx a lot  :)

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: smaller detail picture (to save traffic)
« Reply #7 on: March 22, 2005, 06:51:26 AM »
This sounds like a pretty awsome thing... is there anything negative to using this/// I mean does it kill the server or anything?
As long as I can finish my site before I die.

Offline alsodest

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #8 on: March 22, 2005, 07:33:07 PM »
No, but the traffic will be the same, so it's looks great but for slow connections you should use the cache version or easier you make 2 thumbs, once with 100px and one with 300px. maybe a Mod with 2 autothumbs would be the final version. my english is soo bad, but i try  :roll:

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: smaller detail picture (to save traffic)
« Reply #9 on: March 31, 2005, 04:24:03 PM »
how will can cache the pictures when phpthumb using

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: smaller detail picture (to save traffic)
« Reply #10 on: March 31, 2005, 05:38:59 PM »
how will can cache the pictures when phpthumb using

huh?  :?: :o :?:
Can you define the question a bit more precise, please?
MAяTRIX


Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: smaller detail picture (to save traffic)
« Reply #11 on: March 31, 2005, 07:28:23 PM »
When I use "phpthumb", pictures not caching by my browser. Who knows - how I can force my browser to cache this pictures?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: smaller detail picture (to save traffic)
« Reply #12 on: March 31, 2005, 08:06:06 PM »
Well, now I do understand the question :)
Unfortunately I'm not able to answer it. I could only speculate about it... but that's not, what you want ;)
Sorry :(
MAяTRIX


Offline alsodest

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #13 on: March 31, 2005, 09:48:26 PM »
I did it like this: create a directory cache on your webserver, then edit the phpThumb.config.php on Line 30 $PHPTHUMB_CONFIG['cache_directory'] = '/bla bla bla/cache';

make sure you have the permission to write

so that's it

hope it works, it would be the first time that i can help somebody  :wink:

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: smaller detail picture (to save traffic)
« Reply #14 on: March 31, 2005, 10:09:05 PM »
on-server-caching is something different.
but I guess vanish asked, how to force the BROWSER to cache the "image" (even if it is not an image, but a php-file with jpg output...)
MAяTRIX