Custom Thumbnail on Index Page

2»

Comments

  • Sorry, should actually be `printAlbumThumbImage()`, that's the function to use for that. Not sure about adjusting the scale of the crop, I don't use the custom crop much myself. Sorry I can't be a huge help more on this. Btw, your gallery is beginning to take great shape!
  • Thanks for the help. Very much appreciated. However, I still have the cropping issue which I want to resolve. Any others reading this; could you please comment on why I cannot get the custom thumbnail cropping to work when using the code listed in the link below. It does not call for anything custom so it should be working.

    Again, backticks aren't working for me, so here is the upload.

    http://www.thegoldbrick.net/wp-content/uploads/2009/11/Index-php.txt
  • acrylian Administrator, Developer
    Look at the comment on top of the file `zp-core/i.php` that directly explains the crop/sizing options.

    I am not sure if the admin crop values really are used for the album thumbs and not only the image thumbs...but I really assume they are...
  • Thanks acrylian. In regards to the x and y axis, I found the similar information in the functions guide, but that explains it a little better. Never would have known to look in zp-core/i.php by the way. What are the range of values for this data or is it infinite? I'll experiment with it.

    However, I really(!) want to know why the custom thumbnail cropping on my admin does not work. If you could take a look at the code to see if anything is wrong that would be great. If you need other information or want to log in as an admin, let me know.

    No custom functions means it should work properly, but I cannot get it to do so. I think I must be confused how this works.
  • Ryan, backticks aren working for me either when I type them on my keyboard..
    but when I copy the backtick from the line below the send post form and paste it in the form twice it works..
  • An interesting aspect I've noticed... the admin-crop feature works, but it's only a square for me. It won't drag to a rectangle, only changes the scale of the square. A bit of a pain, perhaps a ticket is in order?
  • acrylian Administrator, Developer
    You have to hit "space" after typing a backtick, otherwise it gets deleted (as it is actually used for adding accents to characters).

    The admin crop is tied to the measures set on the admin option. You can't freely crop say width > height if you set the option to width = height. So if you set for example 100px x 100px you can use only square crops as Zenphoto always uses the same dimensions for all thumbs. You can just set the part you want to be cropped.
  • Well the problem is not that I can't freely crop. In fact, I'm not interested in that at all. I want to keep all the index thumbs at 300x150. The problem is that when I go to the custom thumbnail cropping in the admin, I cannot select anything. It only shows the Zenphoto generated crop and gives me no freedom in adjusting anything. Acrylian, can you login and check this for me?
  • Maybe I just don't know how the admin functions. Could you clarify the following for me.

    I am assuming that if I have my admin options set to 300x150, then when I go to the custom thumbnail cropping in the admin, I will be able to maneuver a 300x150 (2 to 1 ratio) box around the picture and place it over the portion of the image that I wish to have as the thumbnail. Is this a correct assumption? I figure it is, but I just want to confirm that I am not frustrated over something that the admin is not even capable of.

    I am not interested in freely cropping the picture. I just want a fixed width/height box that I can drag around the image to the position of my choice and then set the album thumb as that selected position.
  • acrylian Administrator, Developer
    You should actually be able to size that border within the 2:1 aspect ratio. What browser are you using? Do you use the latest Zenphoto relaese? (don't remember if you already told).
  • Using browser Firefox 3.0.14 and Zenphoto 1.2.2. Also checked it in IE 8.0.6001. Same result.

    I cannot adjust any borders and do not see any 2:1 aspect ratio boxes. Nothing adjusts in that section of the admin.
  • acrylian Administrator, Developer
    Well, the current release is 1.2.6 so you really should update....
  • okay. i will update. then post back with the results sometime tomorrow. hope that is the fix. i doubt it though.
  • acrylian Administrator, Developer
    There have been quite some fixes since 1.2.2...
  • Well, I stand corrected. I upgraded to 1.2.6 and it worked. The cropping feature works just fine. Guess I was pessimistic since troubleshooting usually doesn't turn out that easy for me. Probably should have considered that my Zenphoto was out of date much earlier. Thanks for the help from michaell and acrylian. I'm sure I'll be back with something else sometime soon.
  • acrylian Administrator, Developer
    Well, we don't release new versions for no reason...;-)
Sign In or Register to comment.