Author Topic: Big images  (Read 7874 times)

0 Members and 1 Guest are viewing this topic.

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Big images
« on: July 11, 2005, 10:26:53 AM »
Hi.

I would like to publish pictures, which are have a size of 1024x768. However when clicking on the thumbnail (160x120), I would like to show the image as 640x480. When downloading, the image shouzld be full size (1024x768).

1. thumbnail: 160x120
2. presentation on the 4images site: 640x480
3. download: 1024x768

1. is no problem.

If I upload the image as 1024x768, 3. is no problem either.

But ... if the uploaded image is 1024x768, you can I scale the resolution down to 640x480 when showing the picture on the 4images site?

Hope this was understandable :).

Thanks.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Big images
« Reply #1 on: July 11, 2005, 11:14:02 AM »
Hi Geohei

If I got u right, U need this wonderful Mod by "CHRIS"

]http://www.4homepages.de/forum/index.php?topic=7499.0

If I can suggest U something...

When u get some spare time. Start reading forum threads. That will not only help u improving ur 4images gallery, but also u will be getting a lot of useful info.
I m not a  Programmer.
          But
I m a Good Learner.

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
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 geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Big images
« Reply #3 on: July 12, 2005, 02:26:17 PM »
Hi Geohei

If I got u right, U need this wonderful Mod by "CHRIS"

]http://www.4homepages.de/forum/index.php?topic=7499.0

This seems to be what I was looking for. I will dig myself deeper into this tonight.

However my initial idea was someting like this here. Lord Nite shows the big size image already in the detail page (regarding the speed the image is constructed inside the browser, I believe that it is sized down somehow). This is contrary to the mod described in your link, where a separate directory is installed to save the big images.

Do you see the difference? If not, just let me know and I go into details.

If I can suggest U something...

When u get some spare time. Start reading forum threads. That will not only help u improving ur 4images gallery, but also u will be getting a lot of useful info.

I was looking for this already several times, but never found something which really suited my needs.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Big images
« Reply #4 on: July 13, 2005, 02:06:20 AM »
Hi Geohei.

In order to see the difference i have to register to the site of Lord Nite.  :)

And, if u want to have a better speed and at the same time allowing users to download big images, the link i gave u is the best option. Anyway , if u don’t want to use it, but still want to get a small image just like the site u gave me u can do this

go to templates/default/media and in jpg.html file
The only line is
Code: [Select]
<!-- Template file for JPG Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />

change
{width_height} to what ever u want like  width="550" height="412" .

This is the approach used by the site u mentioned.


I m not a  Programmer.
          But
I m a Good Learner.

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Big images
« Reply #5 on: July 13, 2005, 07:23:04 AM »
...
This is the approach used by the site u mentioned.
Right! ... Thanks a lot.
I'll give that one a try.

Bye,

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Big images
« Reply #6 on: July 23, 2005, 12:29:11 AM »
Hi Geohei

If I got u right, U need this wonderful Mod by "CHRIS"
]http://www.4homepages.de/forum/index.php?topic=7499.0

I included the mod and it works great :!: Thanks again for the hint.

But I don't get what this here means (at the very bottom of Chris' code modification posting) :?:

Open details.html and add something like this to use the new download information:
Code: [Select]
          <tr>
            <td>{download_image_file_size} [{download_width}x{download_height}]</td>
          </tr>

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Big images
« Reply #7 on: August 04, 2005, 02:07:30 PM »
No answer yet on previous posting :(
Please have a look at the 6th posting of the following link (by Chris)
http://www.4homepages.de/forum/index.php?topic=7499.0

I don't get what he means with the last "code" box :?:
Open details.html and add something like this to use the new download information:
Code: [Select]
          <tr>
            <td>{download_image_file_size} [{download_width}x{download_height}]</td>
          </tr>

Can someone please explain ...

Many thanks!

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Re: Big images
« Reply #8 on: August 15, 2005, 10:58:18 PM »
I found where to put it. It's in the template code.

But where shall I put it?

Thanks.