Member
Member
Infidel   2008-01-17, 06:05
#1

Hi, im new to using this script and i just set it up on my site. For some reason the script seems to crop the thumb nail even if i ask it not to. This is makes a few of the images unreadable from thumbnail view. Any ideas?

Administrator
Administrator
acrylian   2008-01-17, 11:38
#2

You need to empty the fields for crop width and height in 1.1.3. That is a know bug and corrected in the nightly build

Member
Member
Infidel   2008-01-17, 15:16
#3

Hmm, Ok ill take a look at nightly build then. Thank you.

Member
Member
Infidel   2008-01-17, 16:02
#4

I upped nightly build, it works well however now the thumbnails are skewing each other and misaligning the theme. Is there any way to make it so it resizes the images to a square without cropping them?

Administrator
Administrator
acrylian   2008-01-17, 18:04
#5

Well, that's why they are cropped. So you want to resize images that are not squares to squares? Do you think that will help your images?...:-) No, that is not possible with zenphoto.

Member
Member
Infidel   2008-01-17, 20:35
#6

Damn, And yes, it will make them far more visible, the pictures are the covers of books and if the picture is cropped the user cant see the book. Ok, well i guess im going to have to do some custom coding then, probably steal a few lines from gallery 2, thanks for the help.

Administrator
Administrator
acrylian   2008-01-17, 21:21
#7

I think I maybe didn't get you right. If you want to have all thumbs the same height without cropping what would be useful for book covers you just need to disable the cropping, set "Images size is longest size" and all thumbs should have the same height, even if they are landscape images. Of course that could mangle the look of the theme, you need to adjust that manually.

Please take a look at our functions guide, too, maybe you find what you are looking for: http://www.zenphoto.org/documentation

Member
Member
motaheri   2008-01-17, 21:25
#8

yes since ZP crops to the minimum side it is harder to have a theme with thumbnails of different widths and heights without them overlapping each other OR causing them to block the wrap around when the window is resized.

I found a solution loosely based on flickr's contacts' stream

wrap your thumbnails [i]inside[/i] a Div by the class .imagethumb

`

.imagethumb {

float: left;

position: relative !important;

display: block;

border: 0pt;

padding: 0px;

margin-right: 8px;

margin-bottom: 0px;

text-align: center;

min-width: 100px;

height: 250px !important; // play around with this

}

`
this way the thumbnails will reside in boxes of equal height but variable width. When the height is equal the wrap around is done smoothly.

some of that code might be extra, but as long as it works i don't give a ...
you'll have to choose a theme and mess with the css until it works
good luck :]

Member
Member
motaheri   2008-01-17, 21:34
#9

!CORRECTION
as Acrylian mentioned above
ZP [i]CAN[/i] crop to the longest side.. which should make your problem way easier to solve,

Member
Member
Infidel   2008-01-17, 23:40
#10

Hmm, ok well If you look at my current gallery
http://www.thechaosnode.com/index.php?album=book
With it set not to crop and Images size is longest size set as on.

As you can see it is quite garbled up, but if i have crop set on you cannot tell what the books are. Thats the situation, if they where resized to be the same size the site wouldn't be garbled, the quality would be less however you could still make out the title.

Member
Member
sbillard   2008-01-18, 01:50
#11

Seems like you need to use the function getCustomImageURL() to make you thumbnails. Documentaton for this and other functions is at: http://www.zenphoto.org/documentation/

Member
Member
Infidel   2008-01-18, 21:42
#12

Ok, umm i looked at the link provided and could not find what you ment.

Administrator
Member
Member
motaheri   2008-01-19, 14:21
#14

hey Infidel

i added the bellow to your css file

.album {
min-height: 180px;
}

/ mac hide \/

  • html .album {height:180px}
    / end hide /

180 should be bigger than the crop height you set in your ZP options (i am guessing it definitely is)

and viola it seems to clear out your problem! =]
yay for you!

and as both the developers mentioned you could call for customized thumbnails using the mentioned function for the extra customized feel

Member
Member
Infidel   2008-01-20, 22:04
#15

Ok, that worked perfectly! for the albums, ill try using that code with the pictures as well, and sorry i didn't understand what the Developers where talking about, thanks for your help.

Member
Member
motaheri   2008-01-20, 22:30
#16

you should really crop to the longest side tho..

.imagethumb {
float:left;
min-height: 200px;
}

/ mac hide */
html .imagethumb {height:200px}
/ end hide /

Member
Member
Infidel   2008-01-20, 22:49
#17

Yea, so trying it with the pictures didn't work..

ill look into using custom thumnails but thats not really a good solution as, well im on dial up and i have over 3000 pictures. I kinda need it to need auto done

Member
Member
Infidel   2008-01-20, 22:55
#18

lol sorry didn't see your response

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.