Member
Member
bartekk   2005-12-22, 02:20
#1

It is possible to get the image dimensions especially if the current image is vertical or horizontal.
I want to make rollover image navigation like in stopdesign gallery theme.

Member
Member
bartekk   2005-12-23, 23:51
#2

nobody any idea or suggestion?

Developer
Developer
trisweb   2005-12-24, 05:56
#3

I'm planning on adding this to the next version -- the ability to get the original dimensions, the resized dimensions, or whether it's landsape or portrait.

Currently it's quite difficult, but you could use PHP image functions to (inefficiently) get the sizes.

Member
Member
Melissa   2006-04-22, 06:41
#4

I just wondering what is the options available when it come to display the picture either landscape or portrait automatically?

What I do at the moment is just save the picture to whatever way that I need them to be seen via "Window Picture n Fax Viewer" before upload.

Developer
Developer
trisweb   2006-04-22, 17:11
#5

It might be in the EXIF data for the image, but we haven't really considered this yet. There are a couple options, including letting you rotate within ZP. We'll see.

Member
Member
DarrellD   2006-06-02, 05:20
#6

Is there any way to do this yet? Get the size of the [b]original[/b] image? I've been looking through the code, but haven't found any yet.

I'm also thinking of writing my own function for it, but not sure where the best place to implement it would be.

Member
Member
DarrellD   2006-06-02, 07:57
#7

Nevermind. I found the answer. I was looking at code from 1.0.2.

FYI for anyone reading this. [b]Getting the dimensions of the original image is now supported as of 1.0.3[/b].

Developer
Developer
trisweb   2006-06-02, 08:06
#8

You are correct! The theme functions are not documented yet (hopefully will be soon), but look in template-functions.php for a "raw" list.

For quick reference, the functions are:
// Returns an array [width, height] of the default-sized image.
function [b]getSizeDefaultImage()[/b]

// Returns an array [width, height] of the original image.
function [b]getSizeFullImage()[/b]

// The width of the default-sized image (in printDefaultSizedImage)
function [b]getDefaultWidth()[/b]

// The height of the default-sized image (in printDefaultSizedImage)
function [b]getDefaultHeight()[/b]

// The width of the original image
function [b]getFullWidth()[/b]

// The height of the original image
function [b]getFullHeight()[/b]

// Returns true if the image is landscape-oriented (width is greater than height)
function [b]isLandscape()[/b]

// Returns an array [width, height] of the image sized based on the given parameters.
function [b]getSizeCustomImage[/b]($size, $width=NULL, $height=NULL, $cropw=NULL, $croph=NULL, $cropx=NULL, $cropy=NULL)

Member
Member
relee   2006-06-17, 02:29
#9

HI folks-the pics I take in portrait mode are not rotated correclty. Anyone have any suggestions on how to get them to be correclty rotated?
Thanks

Member
Member
DarrellD   2006-06-17, 05:16
#10

Rotate them before uploading to your gallery. You can accomplish that with these:
• Photoshop
• Windows Image Viewer
• IrfanView
• etc.

Developer
Developer
trisweb   2006-06-17, 18:58
#11

I personally like using Picasa2 (google it) to manage all my photos, then select the ones to upload to ZP and export them. They're rotated automatically.

Member
Member
relee   2006-06-18, 13:51
#12

Thanks for your replies. When i view the images in Adobe PS they are all correctly rotated. I'm gonna try picasa2.

Developer
Developer
trisweb   2006-06-18, 16:33
#13

Any good photo editor/viewer will correctly rotate them based on EXIF data, but Zenphoto doesn't have a good EXIF implementation yet, so we've been waiting on that. Hopefully we can get that in the next version.

Member
Member
relee   2006-06-20, 15:35
#14

hmmm, I d/l picasa2=impressive. How do you export to my zenphoto folder on my site?

Member
Member
relee   2006-06-21, 13:13
#15

http://www.re-lee.com/photos. I have rotated my portrait images to be the correct orientation in Nikon's Picture Project software or with Windows Viewer. The images are still in landscape when they should be in portrait. Any other suggestions?

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