When I click a picture batch registered in the single picture browsing page, the picture dimension within the pop-up window is too small. For a 640x480 picture, I got a dimension of 64x48.
And, when I verify the attributes stored in xoops_myalbum_photos table of this kind of picture , I found both res_x and res_y are 0. If I directly fixed them with the correct dimension, the problem is gone.
hi chengpang.
Perhaps, the names of the files are not ended .gif , .jpeg, .jpg, or .png .
If you often upload such irregular image files, you can hack like this:
line 87 of admin/batch.php
if( is_readable( $file_path ) && in_array( strtolower( $ext ) , $array_allowed_exts ) ) {
$lid = $xoopsDB->genId( $table_photos."_lid_seq" ) ;
if( ! in_array( strtolower( $ext ) , $myalbum_normal_exts ) ) {
list( $w , $h ) = getimagesize( $file_path ) ;
} else {
list( $w , $h ) = array( 0 , 0 ) ;
}
Yep i get the same thing and also another problem when batch registering it does not make the intemediate picture. everything else seems to work right when i add pictures one at a time. it only happens when i batch register.
do i need to give just the path or file names to.? because when i use batch register in the path area it ask for files to upload.
and one more thing i can get the intermediate picture if i rebuild the thumbnails so i think nothing is wrong on my end.
Yep i get the same thing and also another problem when batch registering it does not make the intemediate picture. everything else seems to work right when i add pictures one at a time. it only happens when i batch register.
do i need to give just the path or file names to.? because when i use batch register in the path area it ask for files to upload.
and one more thing i can get the intermediate picture if i rebuild the thumbnails so i think nothing is wrong on my end.
I too have the same problem. Upload the pictures individually and the intermediate picture is created. Upload them as a batch and the intermediate picture is full size, throwing the page right out.
if this gets fixed and i am able to change the main page of myAlbum-p i will be able to use this.
hi catfish.
What you said is right.
Batch register doesn't create intermediate files.
If you want to resize batch registered image files, use "rebuild thumbnails".
and turn "resize bigger photos than the pixels specified in current preferences" on.
The reason why I don't implement the feature of creating intermediate images in batch register is to prevent from time out of the script.
Anyone had any luck registering .mov files? I'm having a similar issue, where it will pop up my QTVR (.mov) to a tiny window.
I've tried adding .mov to allowed file extensions and video/quicktime to allowed mime types. Still no go.