Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 - 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Extgallery nightmares...
by Mamba on 2014/2/19 19:22:48

Quote:
Thanks, now it's working!! I didn't have the correct permissions when I first tried Tom's solution.

Excellent! I'm glad to hear it!

Quote:
What is the "large" image folder used for? It's make no sense to have that folder. The file that gets stored there is not the original. Just a bigger file than the original with worse quality. So it's not used for anything what I can see.

There is some inconsistencies, and hopefully in the next major release, we'll be able to clean this all up. I was looking yesterday at various photo galleries, and I think, it would be good to have a nice updated version of extGallery for XOOPS 2.6.0. And include an import function for all the other XOOPS galleries, so people could migrate to extGallery, and we wouldn't have to maintain all the other modules.

If you love some features in the other galleries, please let us know, and we'll see if we can incorporate them into extGallery.
Re: Extgallery nightmares...
by hipoonios on 2014/2/19 19:03:11

Thanks, now it's working!! I didn't have the correct permissions when I first tried Tom's solution.

Another question:

What is the "large" image folder used for? It's make no sense to have that folder. The file that gets stored there is not the original. Just a bigger file than the original with worse quality. So it's not used for anything what I can see.

Also the system displays the file size of this large file instead of the original. But I don't care about that. Just want to mention it since it can be another bug.
Re: Extgallery nightmares...
by Mamba on 2014/2/17 12:12:43

Quote:
I see the original file is saved on the server. But still the medium image (that file is used when viewing images online) will be downloaded when you click "download original".

1) I've tested Tom's solution and it seems to be working just fine, so I'll include it in the next update.

2) The issue what you have, is probably because you might not set the Permissions correctly.

There are two relevant permissions:

Can download pictures (needed to see the link to download)
Can download original pictures (needed for download of the original picture)

If you set only the first, user will have the download link visible, but be able to download only the "medium" picture. To download the original, the user needs both permissions set.

The bug was that if you uploaded a smaller picture than the default, it didn't set in the database the flag for "photo_havelarge".

Unfortunately, the original download routine was testing for this flag, and if the picture didn't have it, you would always get only the "medium" picture, even if you had permission to download original picture.

Tom's suggested fix solves the issue, i.e.:

a) if you have permission to original picture download, you'll get it, regardless of the size
b) if you don't have the permission, extGallery will check for the flag "photo_havelarge" and if set, it will get you the "large" picture, and if not, you'll get the "medium" picture.

So go ahead, use Tom's fix, set both the permissions, and then upload a small picture and see if it works.

And I'll commit the fix to SVN
Re: Extgallery nightmares...
by Mamba on 2014/2/17 1:32:17

Quote:
I forgot to mention that the image resolution must be smaller than set in preferences.

I was able to reproduce it, so I'll look into it this week...
Re: Extgallery nightmares...
by hipoonios on 2014/2/16 13:22:45

Thanks for testing Mamba.

The directories and "save original" is checked in preferences. So that's not the problem.

I forgot to mention that the image resolution must be smaller than set in preferences.

I see now the default is 600px. So forget what i first said about 640px. Upload a picture image smaller than the size your have set in preferences.
You should not be able to download the original file (compare the file size and see for yourself).

I see the original file is saved on the server. But still the medium image (that file is used when viewing images online) will be downloaded when you click "download original".

Resized Image

Who's Online

317 user(s) are online (270 user(s) are browsing Support Forums)


Members: 0


Guests: 317


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits