[Solved]: Intermediate Image Display Issue [Solved]: Intermediate Image Display Issue
 

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]

Main Menu

[Solved]: Intermediate Image Display Issue

Started by pressurecooker, April 03, 2008, 12:10:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pressurecooker

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.
Join the green campaign - Environmental Articles

Joachim Müller

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

pressurecooker

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.
Join the green campaign - Environmental Articles

pressurecooker

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!
Join the green campaign - Environmental Articles

Nibbler

You probably hardcoded the width in the template.

steveeh131047

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

<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  :)

steveeh131047

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.

pressurecooker

Quote from: Nibbler on April 04, 2008, 01:27:03 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
$max="462"
to what I wanted. So, it is solved  :)
Join the green campaign - Environmental Articles