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: [Solved]: Intermediate Image Display Issue  (Read 3210 times)

0 Members and 1 Guest are viewing this topic.

pressurecooker

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
    • Environmental Articles
[Solved]: Intermediate Image Display Issue
« on: April 03, 2008, 12:10:54 pm »

Hi!
I am trying to make CopperMine 1.4 look the way I want. My stumbling block is the Intermediate Image Display section. I changed the layout so that the file information displays near the image (instead of displaying it under the image). The problem is that if an image is 'landscape' oriented, the content section doesn't fit in its place and shows those annoying scrolling bars. Here is how I tried to solve this:

1. Reducing the size of an intermediate image (through configuration) - it doesn't work. It is stubbornly keeping the size at 300 px regardless of my settings. (Yes, I tried the Admin Tools resize and I even reinstalled and reconfigured it before adding any images ;) )
2. Playing with the stylesheet to increase the width of the corresponding <div> tag - it doesn't work.

The example is http://www.nanotoxic.com/copper/index.php - if you try to click on any of those images, you'll see what I mean.

I would be very grateful for ideas or suggestions.
Thank you.
« Last Edit: April 07, 2008, 02:40:52 pm by Joachim Müller »
Logged
Join the green campaign - Environmental Articles

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Intermediate Image Display Issue
« Reply #1 on: April 04, 2008, 07:12:43 am »

Works as expected for me on a 1024 x 768 screen.
Logged

pressurecooker

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
    • Environmental Articles
Re: Intermediate Image Display Issue
« Reply #2 on: April 04, 2008, 10:33:27 am »

Yes, I did not expect anything else without directly changing some settings. What I am wondering about - is how to change stuff to make it look better ???
Do you have an idea, why the image display settings (where I set the width of the intermediate image) doesn't obey me? Is there a way I can override this setting. I want the images to be 250px and this is something I cannot get.
Logged
Join the green campaign - Environmental Articles

pressurecooker

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
    • Environmental Articles
Re: Intermediate Image Display Issue
« Reply #3 on: April 04, 2008, 11:09:39 am »

Sorry for another post, but I just discovered something strange. I used Admin Tools to resize my intermediate pics to 250px width and this time the Tool did it successfuly, however, when displayed in the displayimage.php, the intermediate file normal_myfilename.jpg is shown 460px wide  :o
Needless to say that it looks awful, because the actual filesize is 250px and on displayimage.php it just gets stretched!
Logged
Join the green campaign - Environmental Articles

Nibbler

  • Guest
Re: Intermediate Image Display Issue
« Reply #4 on: April 04, 2008, 01:27:03 pm »

You probably hardcoded the width in the template.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: Intermediate Image Display Issue
« Reply #5 on: April 04, 2008, 04:02:15 pm »

If I'm looking at the right page, the Intermediate is showing as 300px wide; and that's because it is hardcoded as 300:

Code: [Select]
<img src="albums/pink/normal_ghs_0001014.jpg" width="300" height="178" class="intermed_image" border="0" alt="" /><br />
In your HTML <head> you seem to have at least 4 style sheets called up. It'd be worth checking that the CSS selectors really are applying to the  HTML you think they are - I know from experience it's easy to make a mistake  :)
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: Intermediate Image Display Issue
« Reply #6 on: April 04, 2008, 04:13:18 pm »

Don't know if it helps, but I can't find the "intermed_image" class defined anywhere in the style_wp.css or style_cpg.css stylesheets that you seem to be using.
Logged

pressurecooker

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
    • Environmental Articles
Re: Intermediate Image Display Issue
« Reply #7 on: April 07, 2008, 12:50:19 pm »

You probably hardcoded the width in the template.
Thank you very much. You were right. I found this function compute_img_size_max inside my theme.php and changed the variable
Code: [Select]
$max="462"to what I wanted. So, it is solved  :)
Logged
Join the green campaign - Environmental Articles
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 15 queries.