Pages (2): 1 2   
Member
Member
kevito   23-06-2006, 07:11
#1

Is it possible to set the default height? I can set the default width through image_size in zp-config.php, but I see nowhere to set the height...

I basically want every image to fit within a 460 height x 610 width space. If it's a landscape-oriented image, it's default would be 610 width, and if the image is portrait, it'll have a height of 460.

Member
Member
kevito   23-06-2006, 07:12
#2

just saw this hack:
http://www.zenphoto.org/support/topic.php?id=247

is this currently the only way?

Member
Member
kevito   23-06-2006, 17:31
#3

Hack doesn't work in Zenphoto 1.0.3. Could anyone help me get this same result with the new code? Thanks!

Member
Member
DarrellD   24-06-2006, 07:46
#4

Take a look at album.php for the JoshuaInk theme that I developed. Look at the image loop and the code right before it.

This should be what you're looking for.

Member
Member
kevito   25-06-2006, 20:59
#5

The code in album.php seems to effect only thumbnails. Thumbnails I have worked out. What I need is the slide image resized to fit a specific height and width. So, I tried taking this code from your image.php instead:

`

        [img][/img]" width=""

            height="" />

`

I replaced your 600 with 610 and 480 with 460 (line 5&6 here) to create the box I need the images to fit in. It almost seems to do what I need, but the landscape oriented images are being cropped/stretched and distorted. Is there something I'm missing? BTW, my images have odd crops, they're all not of a similar aspect ratio... some are really long and skinny, some square. And I tried clearing out the gallery/cache folder, which had no effect.

Member
Member
kevito   25-06-2006, 21:07
#6

If I leave the 600 & 480 alone, the distortions don't happen, it all looks fine. But I do need to fit them in a different sized box. So how would I change these values?

Thanks so much for helping.

Member
Member
DarrellD   28-06-2006, 00:01
#7

Sorry, man... I've been busy with work, school, homework, and volunteering at the hospital. I'll see if I can get a chance to take a look at the code again this weeken (i know, sorry... it's cutting it short for your trip).

Member
Member
kevito   28-06-2006, 03:20
#8

Even leaving the values at 600 & 480, some images that are landscape and longer than the average photograph distort (specifically images that are 900x305 and one that's 650x361).

I understand being busy! Thanks for any help you can offer.

Member
Member
DarrellD   28-06-2006, 03:36
#9

Oh, can you post a link so I can see how it's looking? Because when I tried the different sized images that I had, it seemed to work okay.

Member
Member
kevito   28-06-2006, 09:03
#10

http://federiconovelo.com/gallery/
then concept_art.
scroll to bottom, last 5 images...
four of those are distorted. The repeated one, I tried shrinking and expanding it's size for testing.

Member
Member
DarrellD   28-06-2006, 22:34
#11

Looks like db server is down. I'm getting db errors.

Member
Member
kevito   28-06-2006, 22:36
#12

bad timing.. i'm starting with a fresh install/new db to see if that fixes it.

Member
Member
kevito   28-06-2006, 23:32
#13

Seems to be a problem with your JoshuaInk theme? I started fresh, new db, reinstalled zenphoto, reuploaded images. Using the stock JoshuaInk theme, the same two images distort. It's two of the last three images in the concept_art section (silence01 and vivora). If I use any other theme, this doesn't happen. But I have no way of fixing the height in any other theme... that's the only functionality I'm needing to get this done.

Member
Member
DarrellD   29-06-2006, 00:31
#14

Great! This will help now that I see what's happening. I have a test tomorrow AND friday, but if i get enough studying done tonight, I'll try and take a look at it tonight.

Member
Member
thinkdreams   29-06-2006, 01:38
#15

I think I fixed it Kevito. Check out http://www.thinkdreams.com/zen_kevito and let me know what you think. I don't think you'll have to modify the zen_config either.

Thinkdreams.

Member
Member
thinkdreams   29-06-2006, 01:39
#16

Cool art by the way. My compliments to the artist.

Member
Member
kevito   29-06-2006, 16:09
#17

I emailed you Thinkdreams. It's not quite fixed yet once your fixes are plugged into the theme I was doing... so maybe it's some of my code too?

I'll let the artist know you like his stuff .

Member
Member
thinkdreams   29-06-2006, 23:07
#18

I'll check them out if I get a chance tonight with the code you sent.

Thinkdreams.

Member
Member
thinkdreams   30-06-2006, 03:35
#19

GameDudeX.

You need to look at this. I can't figure out why it's being cropped so strangely. It's the wierdest thing I've ever seen.

Go to http://www.thinkdreams.com/zen_kevito

I've added some echo statements to help simplify the numbers being output. Might not make a whole lot of sense, but it helped me.

Other than adding "610" to the zp_conf file for image sizing, it's all stock based on joshuaink.

Hope this helps with Kevito's troubles. I've been helping too.

Here's the image.php snippet:

Member
Member
thinkdreams   01-07-2006, 00:25
#20

Bingo. Check it out at http://www.thinkdreams.com/zen_kevito

I found a way to check for the image height, and resample everything within a 610/460 boundary.

Here's the mods to the image.php (using a stock JoshuaInk):

                        " title="">



                        " title="">
Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.