Skip to main content
[ADDON] Levertine Gallery Started by Spuds · · Read 66873 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Re: Levertine Gallery

Reply #30

Quote from: Spuds –
I've only installed it a few times on kind of empty forums and I don't think it set any default groups for me, so I'll have to check on that.  I know it does not show post count groups (it can but it does not by default), are there other groups missing?



Are these animated smileys in the editor, and if so are they always shown or in the popup?  Just so I can try and reproduce (the error that is :D)

No, it's only post based membergroups missing. That is not a big deal for my sites. The puzzling part is the chosen manager groups. Neither group posses other moderation or administrative powers.

The smileys may make a...get this...monkey of me. They are working on my mobile upon second glance. The original observation was made on a Windows 10 laptop. Perhaps a caching issue popped up, or simply a glitch in the matrix. Future reports forthcoming as appropriate. ;D

Re: Levertine Gallery

Reply #31

Quote from: badmonkey – the gallery uses dropzone.js. Therefore it may be possible to utilize client side resizing. That may be advantageous in saving server cpu (let the user's machine do the heavy lifting!), saves bandwidth (nice for mobile users with spotty connections), and saves disk space (the original goal, right?). A con is it applies to all users. I plan to work on such configurations later.
Correct.  It uses client side now to create the thumbnails you see in the GUI, but that is all I use them for.   I think it could be an option for some sites but I did not want to do that as a gallery default as the client side resize is of much lower quality than what will happen server side.  I'm also not sure it will maintain any meta/exif data and if not you will loose that info.  So probably an option for some sites but not all.   Keep us up to date on what you do.

Also I'm probably going to add 4:2:0 subsampling on the save to improve compression and save some space.  Given we are dealing mostly with jpeg images enough data has been lost that 4:2:0 will not be noticed at all.
QuoteOh, another potential configurable in DZ is the Begin Upload button may be eliminated. Uploads begin upon file selection.
That's what it does on the single add page, the save button there is for all of the other meta data.  On multi I have the submit button to begin just to give the opportunity to add/remove.
Quote from: badmonkey – No, it's only post based membergroups missing. That is not a big deal for my sites. The puzzling part is the chosen manager groups. Neither group posses other moderation or administrative powers.
Well I found one bug I introduced and it has to do with me not maintaining groupid's during a sort which causes some anomalies as in its completely wrong LOL.  I'll update with a new package this evening.
Quote from: badmonkey –
The smileys may make a...get this...monkey of me. They are working on my mobile upon second glance. The original observation was made on a Windows 10 laptop. Perhaps a caching issue popped up, or simply a glitch in the matrix. Future reports forthcoming as appropriate. ;D

I'll take a look as well, could be some cache issue as this adds several new style sheets to the mix.

Re: Levertine Gallery

Reply #32

Quote from: radu81 – as you can see the total size of the original images is about 10 MB, but in the bottom I see only 2,5 MB.
There are some oddities with the total progress bar and chunked uploads, and images that size will be chunked, sent in parallel and recombined on the server.  That is how it can send large files w/o tripping php upload limits, plus its fast.  dropzone made a recent fix that improved things in this regard, but there are also issues when things fail/die.  I'll do some more checking on this.

Re: Levertine Gallery

Reply #33

Quote from: Spuds –
Quote[Don't know why email replies aren't going through - not sure if it's just this board, or all of EA..  used to work. Back to manual posting..]
Duplicate post complements of the PBE function .. I found that message in the Gmai Spam.  Since it posted I'm going to assume that was the only issue (well other than it doing a crappy job seeing the original quote and dealing with it)

The "quote formatting" was my client, not EA..

OK, both email replies posted (apparently with admin help), I'll go back and "clean up" the thread..
Last Edit: April 09, 2021, 02:57:07 pm by Steeley

// Deep inside every dilemma lies a solution that involves explosives //

Re: Levertine Gallery

Reply #34

I think the issues that @radu81 posted have been fixed now, I'll post the update soon and then go to find more opportunities.

The issue in this case is that the file width and height are not available to check until after the client side thumbnail is complete.  I was checking those sizes but not specifically waiting for the thumbnail event.  That little tidbit is buried in the docs. 

Now the form will reject adding the file and it will not attempt to upload.   If you get all hackey and post yer own, the server will still check and reject.  Its here we find bug number 2, it did reject it but the upload UI was not showing failed and left the spinners in place.  That is also fixed.


Re: Levertine Gallery

Reply #35

OK the first post has been updated with todays batch of fixes .... the multi upload file size check ended up a bit more challenging then  first though but it should be sorted.

@tino when you noted you had TP gallery fixed, did you do that with TP gallery block, I'm really asking if I need to include the current TP files with this or can they be removed now?

Re: Levertine Gallery

Reply #36

I used the block codes you had, there was a bug in the TinyPortal logic. I can add them as part of the default block codes and you can remove them if you’d like.

I’m reworking TinyPortal so you can upload new ones easily anyway.

Re: Levertine Gallery

Reply #37

For categories I mean categories for albums, or sub-albums as they are called in Aeva. Usually categories are created by admins, and members needs to choose a category when they are creating a new album.In this way I can keep more organised the category.
I looked at the persmissions but there is no way to make a sub-album.
sorry for my bad english

Re: Levertine Gallery

Reply #38

You can have sub albums.  What you need to do is add a few albums under a user or group or ownership level.

Then when you view the albums of that user or group you will see on the side an arrange albums option, choose that.  You are now in a drop and drag interface like in the manage boards area of the APC.  Simply drag an album towards the right and drop in on the album you want it to be a child of.  You can have many levels as well.

The album order shown here is maintained, so its up to you to sort them however you want and that is how they will be displayed.

ETA:  that D&D is not ajax, so arrange it like you want and click save !

Re: Levertine Gallery

Reply #39

I just did a quick package refresh on the first post.  When I made the WxH size check updates for bulk upload I neglected to make a minor change in the single add area which would prevent it from working.

Re: Levertine Gallery

Reply #40

Quote from: tino – I used the block codes you had, there was a bug in the TinyPortal logic. I can add them as part of the default block codes and you can remove them if you’d like.

I’m reworking TinyPortal so you can upload new ones easily anyway.
Honestly its however you would like it to be.  I think it cleaner for the portals to be gallery aware instead of the gallery searching for an installed portal and adding blocks.

Re: Levertine Gallery

Reply #41

Quote from: Spuds –
Quote from: tino – I used the block codes you had, there was a bug in the TinyPortal logic. I can add them as part of the default block codes and you can remove them if you’d like.

I’m reworking TinyPortal so you can upload new ones easily anyway.
Honestly its however you would like it to be.  I think it cleaner for the portals to be gallery aware instead of the gallery searching for an installed portal and adding blocks.

Fine with me. I’ll add the blocks to the next release of TinyPortal.

Re: Levertine Gallery

Reply #42

Quote from: tino –
Quote from: Spuds –
Quote from: tino – I used the block codes you had, there was a bug in the TinyPortal logic. I can add them as part of the default block codes and you can remove them if you’d like.

I’m reworking TinyPortal so you can upload new ones easily anyway.
Honestly its however you would like it to be.  I think it cleaner for the portals to be gallery aware instead of the gallery searching for an installed portal and adding blocks.

Fine with me. I’ll add the blocks to the next release of TinyPortal.

Are you keeping the LevGal_Portal_TinyPortal functions? I have added the tp-files/tp-blockcodes to the next release, but not those functions (yet)

Re: Levertine Gallery

Reply #43

I have not removed anything as of yet.   Certainly no problem keeping that file in place or whatever else you need.

The TP support was clean, it was the SP support used an eval() due to the way SP worked on SMF, but it was not needed for the Elk version, plus the Elk version already had an (unused) gallery block that I could finally actually use!

Re: Levertine Gallery

Reply #44

I updated the first post with todays updates.

This new version adds the Image resize function.  There is a option under the admin quota area, which, when enabled, will resize any images (jpg, png) to fit within the defined quota WxH limits instead or rejecting them.  Once resized it will still honor other limits and reject if its still over those.

One note is that if using GD you will loose Exif data for any images that get resized.  If you have Imagick then the data is retained.

There were a couple of other minor tweaks as well.

Enjoy!