Html-code of thumbs width and height

I'm using 1.2.5 [4022] and before that version the size of the thumbs were included in the html-code, like img src... width="200" height="150" etc. Now this code has dissappeared. I previously asked for this information to be included so I could get my thumbs centered horizontally and vertically inside a box. Now (testing in IE7 and 8 and Firefox) this still works, but not all of the time. Sometimes the browser somehow miscalculates or isn't fast enough and some thumbs are placed halfway beneath the box. Refreshing the browser corrects this problem sometimes.

Can the code be placed back or how can I manually add this to the core?

You can see an example here
If the problem doesn't occur right away, just refresh the page a few times and it will probably come back.

Comments

  • acrylian Administrator, Developer
    I don't remember that we changed, it is there for cropped thumbs. You surely are using the maxspace functions so maybe that was indeed forgotten. We will check that.

    I could not see any issue with FF3.5 and Safari 4 display.

    UPDATE: I have readded width and height attribute with printSizeCustomImages() so it is also used for print...MaxSpace variants. See tonight's nightly. It is not that easy to add it for "normal" uncropped images but sbillard will surely know more.
  • Perhaps you can be more specific on what functions you are using. `printAlbumThumbImage()` and `printCustomAlbumThumbImage()` have not changed.
  • I'm using printImageThumb(getAnnotatedImageTitle()) since version 1.2.1.
    Now I'm using 1.2.5. with that same function. Didn't change anything else.
  • acrylian Administrator, Developer
    Well, we changed a lot since 1.2.1 so something on that function may have changed for whatever reason. I do not remember mabye sbillard will.
    BTW, my quick update above was invalid anway as it broke some things so it was reverted. Since we are already in feature freeze for 1.2.6 we might not get this back for that release.
  • Then please make a note for version 1.2.7? :)
    To be honest, ZenPhoto works for me now as it is. I upgraded without knowing what changed, just to be sure to have the latest version. Which I suspect also to be the safest version.
  • Check your thumb crop height/width options. If they are empty you will get no sizes. This code is identical between 1.2.1 and 1.2.5, BTW.
  • I've set my thumbsize to 150 (longest side), because I use all kinds of proportions.
    I don't use cropped thumbs.

    Please could you give me some help in temporarily manually adding that 'old' code Acrylian was trying, because as you can see now everything is 'out of the box'. after refreshing sometimes the thumbs jump back inside the box, but then others are wrong:
    Example.

    EDIT:

    I've removed the lines which refer to the jumpmenu from the html and now it seems as if the thumbs are shown correctly, but I'm still testing. So perhaps the jumpmenu slows down the build of the page/css.
  • acrylian Administrator, Developer
    I was actually need readding old code but new. This is not an easy fix. We need to investigate that and will do after 1.2.6 is released.
  • I'm reopening this topic, because it still gives me headaches...

    I'm using printImageThumb(getAnnotatedImageTitle()) to show uncropped thumbs which I want to align in the middle/centre of a square box. In an older version of ZP the actual width and height of the thumb were printed in the html-code and by using the right css I was able to achieve what I wanted. Somehow, the absence of these values makes it impossible to get it right in all browsers. Strangely enough, for instance, in Firefox on Linux it works ok, but the exact same version of Firefox on Windows not! The same for Chrome. IE 6 en 7 not, IE 8 is ok. I know I can make it work for all browsers, but than I need those width and height values. How can I get them back???
  • acrylian Administrator, Developer
    It does print the width and height if the thumbs are cropped only it seems. Best you open a ticket so that sbillard sees this too and we can investigate that.

    The width or height will always be the value of the size you set, depending on the the "suboption" you set.
Sign In or Register to comment.