PEAK XOOPS - Click a batch registered picture in the single picture browsing page, the pop picture is too small! in englishin japanese

Click a batch registered picture in the single picture browsing page, the pop picture is too small!

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2004/9/20 1:45
chengpang  企霹始   Posts: 1
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.
Votes:1 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/9/23 19:26
GIJOE  黎扦烦菱   Posts: 4110
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 ) ;
			}
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2004/11/14 22:37
catfish0229  企霹始   Posts: 7
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.
Votes:2 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/11/14 22:48
catfish0229  企霹始   Posts: 7
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/11/16 19:29
EvylRat  企霹始   Posts: 3
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/11/17 11:42
catfish0229  企霹始   Posts: 7
if this gets fixed and i am able to change the main page of myAlbum-p i will be able to use this.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2004/11/17 15:12
GIJOE  黎扦烦菱   Posts: 4110
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/11/17 18:31
catfish0229  企霹始   Posts: 7
thank you gi hoe
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/12/8 23:11
htomika  企霹始   Posts: 4
Hi!
I kinda have the same problem, but it's quite strange, because I only use jpg extensions and for some time batch register added all pictures with res_x,res_y=0. I don't know whether it still exists or not because it does it randomly.
But at the moment I have like 600 pictures with this problem which is impossible to update manually. Is there a tool or a script or can somebody help me to auto-update res_x, res_y values?
Thank you in advance!

htomika (Hungary)
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/5 12:47
joecrosley  企霹始   Posts: 1
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/9/5 12:53
GIJOE  黎扦烦菱   Posts: 4110
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!