Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How can I fix size to display image in Random files?  (Read 4302 times)

0 Members and 1 Guest are viewing this topic.

Castilla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 47
  • Thank´s to every one that help!!!!
How can I fix size to display image in Random files?
« on: April 09, 2006, 12:06:32 pm »

Hello... I´m having a problem to find where can I fix the size of the pictures to display in random files in index page ...
I would like that all picture display in 70X70 fixed pixels... at the moment the pictures resized don´t have the same size and looks strange!!!
Can you help me???? ;D
www.adcastilla.com/castalbum
Thank´s
« Last Edit: April 10, 2006, 11:55:44 pm by GauGau »
Logged
Adriana Castilla

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How can I fix size to display image in Random files?
« Reply #1 on: April 09, 2006, 01:06:36 pm »

the thumbnails in the random meta album are just the same size as the regular thumbnails, so I can't see what actually needs fixing.
Logged

Castilla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 47
  • Thank´s to every one that help!!!!
Re: How can I fix size to display image in Random files?
« Reply #2 on: April 09, 2006, 10:12:48 pm »

Ok.. I´m going to explain to you better...
When you are in home or album list you see the pictures resized by ImageMagick in diferent sizes... they are not precise 70X70 pixels... for example ... I have pictures that are displayed width: 73 and height:100....
The pictures are inside the random files table ...  Example:

<!-- Start standard table -->
<table align="center" width="760" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="6">Random files</td>
        </tr>

        <tr>

        <td valign="top" class="thumbnails" width ="17%" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                        <a href="displayimage.php?album=random&amp;cat=0&amp;pos=-5"><img src="albums/userpics/10003/thumb_4.jpg" class="image" width="75" height="100" border="0" alt="4.jpg" title="Filename=4.jpg
Filesize=14KB
Dimensions=300x400
Date added=24.Mar 2006"/><br /></a>
                                       
                                       
                                </td>
                        </tr>
                </table>

So... What shoul I do to have the pictures displayed only in thumbnail sized to width="70" height="70

Am I more clear now???
Thank´s for your attention....
Adriana Castilla
Logged
Adriana Castilla

Bonato

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: How can I fix size to display image in Random files?
« Reply #3 on: April 10, 2006, 09:09:35 am »

I have been using Stramm's mod and it works in the way you want: fixed size for the thumbnails. I must say it's not the easiest thing to use, but if as a begginer I managed to make it work, I'm sure you will not have a problem.

My gallery: http://fotos.gustavobonato.com

- Gustavo
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How can I fix size to display image in Random files?
« Reply #4 on: April 10, 2006, 10:29:05 am »

out of the box, coppermine doesn't crop thumbnails, so you'll have to use a mod as bonato suggested to come up with square thumbnails if your originals are not square.
Logged

Castilla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 47
  • Thank´s to every one that help!!!!
Re: How can I fix size to display image in Random files?
« Reply #5 on: April 10, 2006, 01:54:22 pm »

Thank´s for your help guys... I will have a look in this mod... I don´t know what I have to do...
Bonato... can you give me some tips??? I saw your gallery... It´s exact what I want!!!!
Are you from Brasil??... I saw some pictures... Se for... que legal... eu tambem...
Thank´s... Adriana Castilla
Logged
Adriana Castilla

Castilla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 47
  • Thank´s to every one that help!!!!
Re: How can I fix size to display image in Random files?
« Reply #6 on: April 10, 2006, 02:31:11 pm »

Ok... maybe it´s a bit begginer question... I just want to check before start to do something wrong...
Shoul I upload stramm_mod1.4.4.bridge.3 folder inside my bridge folder and them run update.php???
That´s the way to do???
Sorry for the begginer question!!!
But thank´s if you can use your time to answer me!!!
Logged
Adriana Castilla

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: How can I fix size to display image in Random files?
« Reply #7 on: April 10, 2006, 05:22:34 pm »

nope, you extract all files from the archive. Then you upload them all to your server replacing the existing files. When done run update.php

You should always make a backup of your files/ db before messing with core files/ db

from the modpack thread:
Quote
Installation:
Before you do anything make a backup of your files and your database!!!!!!
Unpack and upload the files in the archive. Keep the folder structure intact. Then run update.php .... done
If you have a bridged Coppermine rerun the bridgemanager
http://forum.coppermine-gallery.net/index.php?topic=28367.0

Castilla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 47
  • Thank´s to every one that help!!!!
Re: How can I fix size to display image in Random files?
« Reply #8 on: April 10, 2006, 10:28:42 pm »

Thank you very much... I create a new website with mod installed from the start point.... Looks like every thing is fine and working...
 ;)
Logged
Adriana Castilla
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.