General support topic for Aeva Media (Latest release: July 28, 2010)

Started by Nao 尚, October 14, 2007, 04:28:15 PM

Previous topic - Next topic

CodeDev

Hello!  :)

Ok, I can see there is a lot of work and effort put on Aeva Media, I appreciate that and I really recognize your work.

However, merging Gallery and Aeva may not be the best solution who simple don't want Gallery.

Yes Gallery is great and we all love it, but it doesn't fit in every projects.

For example, I have my forum prepared to use TinyPic for photos and even videos, it doesn't cost me anything and saves bandwidth. If TinyPic delete our stuff? No problem, the system periodically backs up the remote data.

So, my suggestion was to keep a separate Aeva just for videos (as before) but pluggable for Gallery.

Now, for the bugs, ok, for who doesn't have Image Magick support for JPEG and/or PNF file formats will get an error (PHP exeption).

So my suggestion is for the code to detect it and use GD when it could not use Magic for some file types, but keep it active.

For example, I have not support for PNG and JPEG with Magick, but I do have for other formats like GIF, and that's the most important because animated gifs.

So it goes like this...


if ( Use Magick ) {

    if( It worked ) {

        Great! Move on...

    } else {
 
        Exception, lets use GD this time, without trowing an ugly error.
        Also a notice in the error log would be fine
   
    }

}



Thank you for your amazing work, time and patience.

Nao 尚

SVN rev 187 -- testers needed! A lot of things were changed or added, I need you to make sure everything works.

@ Big update... Please TEST!!
* Renamed script.js to am.js and script-admin.js to admin.js, because I can.
  (Aeva-Admin.php, Aeva-Gallery.php, Aeva-Gallery2.php, Aeva-ModCP.php)
+ Added a 'Zoom' link next to the Zoom icon in lightboxes. Requires updating
  Modifications.language.php though. (install-both.xml)
+ Added item description, and number of comments on an item next to the 'Details'
  link when opening it via lightbox. (Aeva-Subs.php)
! Don't mark an item as read if it already is... What a waste of database space!
  (Aeva-Gallery.php)
! Don't reset the unseen counter and waste CPU time if no changes were made.
  (Aeva-Gallery.php)
+ Mark an item as read when loading its preview or full file and finding out it's unseen
  yet. (Aeva-Gallery.php, Aeva-Subs.php, MGalleryItem.php)
+ Added ability for moderators to 'silently update' an item (no changes to the unseen
  status or last modified field.) (Aeva-Gallery.php, Aeva.template.php, language files)
+ Added mention about members having to be separated with commas in album
  edit page. (Language files)


@IceBurn> I will repeat it once again, since apparently some people are not LISTENING.....

Aeva Media doesn't force you to enable the gallery!!!

You need to explicitly set many permissions to start it. If you don't do anything, your members won't even know there's a gallery system installed.

As for your 'bug'... Aeva Media uses GD2 by default. I don't have ImageMagick on my server, and I'm not interested in supporting it anyway. GD2 does all I need. I haven't heard of a PHP error due to that before. Please explain.

PS: I tested the gallery with many transparent and animated GIF/PNG files. I was actually quite a bit proud of my PNG resizing code, since most similar galleries will not correctly resize 8-bit or 2-bit alpha PNGs for instance. (They won't keep the transparency.)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Nao 尚

Please test!
In great detail, if possible! As I just spent more than a day working on this for you ::)

http://www.simplemachines.org/community/index.php?topic=200401.msg2475313#msg2475313
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

CodeDev

It doesn't force to use gallery, but it will need to be updated more often, because if you update gallery, everyone must update, even if there are no changes in the videos embedding code. But that's OK, no need to argue about it.

You're probably using PHP Imagick, and not the system convert directly ( using exec() or system() ),
so, PHP trows an error if you have not support in the main program (Image Magick) for the file types you are tying to convert.

Does GD work for you with an animation gif? When it's resized using PHP's GD?


Here is one of the PHP's exception I'm talking you about.

Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/home/xxxxxxxx/mgal_data/tmp/cartaz-email.png' @ constitute.c/ReadImage/526' in /home/xxxxxxx/Sources/Aeva-Subs-Vital.php:627 Stack trace: #0 /home/xxxxxx/Sources/Aeva-Subs-Vital.php(627): Imagick->__construct('/home/xxxxx/...') #1 /home/xxxxxxxxl/Sources/Aeva-Subs.php(1954): aeva_media_handler->init('/home/xxxxxx/...') #2 /home/xxxxxxxx/Sources/Aeva-Gallery.php(1625): aeva_createFile(Array) #3 /home/xxxxxxxx/Sources/Aeva-Gallery.php(378): aeva_mgPost() #4 /home/xxxxxx/index.php(138): aeva_initGallery('aeva_mgPost') #5 {main} thrown in /home/xxxx/Sources/Aeva-Subs-Vital.php on line 627

Nao 尚

(Edited my post above to point to rev 187 instead of 186.)

Quote from: IceBurn on January 26, 2010, 09:30:22 AM
It doesn't force to use gallery, but it will need to be updated more often, because if you update gallery, everyone must update, even if there are no changes in the videos embedding code.
Eh...? Why would they need to upgrade? They can just read the changelog and figure out whether they want to upgrade...

QuoteBut that's OK, no need to argue about it.
You can also just use Aeva 7.x if you don't want software that is often updated... (Since it's not updated *at all* actually.) And it doesn't have the gallery module.

QuoteYou're probably using PHP Imagick,
I don't use anything, since I don't have ImageMagick... Remember?

Quoteand not the system convert directly ( using exec() or system() ),
so, PHP trows an error if you have not support in the main program (Image Magick) for the file types you are tying to convert.
Technically, this isn't my problem...

QuoteDoes GD work for you with an animation gif? When it's resized using PHP's GD?
GD doesn't resize animated files. It will just use the first frame. Just make sure your animated file is smaller than your preview width... Usually, animated files are small, aren't they?

QuoteHere is one of the PHP's exception I'm talking you about.

Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/home/xxxxxxxx/mgal_data/tmp/cartaz-email.png' @ constitute.c/ReadImage/526' in /home/xxxxxxx/Sources/Aeva-Subs-Vital.php:627 Stack trace: #0 /home/xxxxxx/Sources/Aeva-Subs-Vital.php(627): Imagick->__construct('/home/xxxxx/...') #1 /home/xxxxxxxxl/Sources/Aeva-Subs.php(1954): aeva_media_handler->init('/home/xxxxxx/...') #2 /home/xxxxxxxx/Sources/Aeva-Gallery.php(1625): aeva_createFile(Array) #3 /home/xxxxxxxx/Sources/Aeva-Gallery.php(378): aeva_mgPost() #4 /home/xxxxxx/index.php(138): aeva_initGallery('aeva_mgPost') #5 {main} thrown in /home/xxxx/Sources/Aeva-Subs-Vital.php on line 627

Yeah, you should probably bring this to the IMagick authors instead... Maybe they have a module available for your filetype.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

CodeDev

Nao, I'm reporting you some issues, and giving you option for some workarounds, but you simple don't want to know or care about them.

Yes, we can add support for JPEG and other file types with Image Magic, but for who doesn't want to or can, that was a good and non obstructive workaround.

Using PHP's Imagick is a good thing yes, better that exec() or system(), or else we won't get these errors that easily it just wont resize and we won't even notice. It's not a problem, and is not a request for you to change to exec functions.

If you don't care about Image Magick you should just remove it from the options, since you don't plan to support it.

GD's doesn't resize animations and keep them animated, Image Magick does, and I'm glad it does because I'm using it in one of my projects.

As I said, I really appreciate your work, I know sometimes it looks like people just don't care, no matter how hard we work and that can make us mad, but it's fine, I no longer bother you about it.

Thanks.

Nao 尚

Quote from: IceBurn on January 26, 2010, 09:51:56 AM
Nao, I'm reporting you some issues, and giving you option for some workarounds, but you simple don't want to know or care about them.
Would you give me your car to fix, if I didn't have a car myself, wouldn't know how to drive it, and wouldn't want to? Any reasons?

QuoteIf you don't care about Image Magick you should just remove it from the options, since you don't plan to support it.
Well, there are people for whom it works. Probably they don't upload animated pngs or something.

QuoteAs I said, I really appreciate your work, I know sometimes it looks like people just don't care, no matter how hard we work and that can make us mad, but it's fine, I no longer bother you about it.
I would try and fix it if I had access to IMagick myself. But I don't.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

~DS~

Not sure weather it's a bug: my user advise me with a error:

"This album's directory couldn't be properly created, please make sure mgal_data/ and mgal_data/albums/ are chmodded to 0777 or 0755."
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

CodeDev

You don't need to have it installed on your system!

It's pretty simple, a basic check, something like:
1) Try to resize using Imagick
2) If it hasn't resize (exception or error), use GD's.

It's not like you need to have it! You just need to add a few lines for checking if the resize has worked as expected.

But OK, you made your point, I'm not even using Gallery, don't even know why I bother about this. I hate when I can't keep my mouth shut! :-X

Thanks.

MultiformeIngegno

Nao I'm going to install the new rev and report here my testing! ;)

For IceBurn posts: I think it's a really good thing having Aeva and SMG unified, first for nao... that now doesn't have to support 2 mods instead of 1... and the other is that you can keep the gallery disabled if you don't want (by default it is!!!), and instead if you want you don't have to install 2 different mod!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

CodeDev

That's a fact lorenzone92.

However one of my main concern is how that affects performance, even when not using Gallery.

IdanC

im on it!

no matter what the comments will be, its a pleasure thinking with you  :)

IdanC

 :) :) :)

so far it looks like a f@<$ing tailor made solution to all my problems, i'm overcome with this feeling of gratitude... i shall call my first born after you!

going deeper into the new features, i'll try resurfacing with a few nice fish...

petesky

How can i remove the usergroup permissions (privacy) from all albums at once ?


os1

Quote from: PureLoneWolf on January 23, 2010, 05:46:18 PM
Hi there

I have just installed b3 on SMF2 RC2 (Fresh install of both, never installed before).

The trouble is, when I try to create an Album (Admin/Avea Media/Albums/New Album) it tells me

This album's directory couldn't be properly created, please make sure mgal_data/ and mgal_data/albums/ are chmodded to 0777 or 0755.

I have checked and the mgal_data directory (and all subs) are chmodded to 777.

I am not sure what I can do

Thanks


I get the same message
"This album's directory couldn't be properly created, please make sure mgal_data/ and mgal_data/albums/ are chmodded to 0777 or 0755." both are 777 and have been 755 but nothing... please offer me some advice, its stumpped me completely :-(

I also got a database missing in aeva-admin.php however this resolved by adding an 's' to the name of the db...

PureLoneWolf

For me, I had to make sure that PHP Safe Mode was turned off with my host.

Maybe it is the same for you?

Cheers

Nao 尚

Check file permissions with your host. Try fixing chmod manually. I can't think of a clearer error message, personally...
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

os1

WOW... rude.

Like i said they are at 777 and have been at 755... writtable, yes?

safe mode is off

Clean install...

cleared cache/cookies, pressed F5 etc

i dont normally resort to posting on boards because you get treated like a dummy.. i normally work through probs but when the error message tells me something and i do as 'advised' but still nothing then well maybe mod isnt for me... i have just returned to smf because i have been watching the development of this mod and when it was at a stage i thought that it would be ideall for my site i started the trek back to smf.. if you cant help me more i'll put move on hold.

clashbot

nao, nothing in browser error console. Nothing in java error log, and nothing in smf's error log

any ideas I can try?

Nao 尚

Quote from: os1 on January 26, 2010, 04:13:46 PM
WOW... rude.
Free advice. Given a thousand times. What do you expect, if you can't search the official topic?

QuoteLike i said they are at 777 and have been at 755... writtable, yes?

safe mode is off

Clean install...

cleared cache/cookies, pressed F5 etc
Contact your host, as I said. Your server isn't configured as it should.

Quotei dont normally resort to posting on boards because you get treated like a dummy.. i normally work through probs but when the error message tells me something and i do as 'advised' but still nothing then well maybe mod isnt for me... i have just returned to smf because i have been watching the development of this mod and when it was at a stage i thought that it would be ideall for my site i started the trek back to smf.. if you cant help me more i'll put move on hold.
As you like. Aeva Media behaves the same as SMG in terms of file perms, BTW. Unless someone finds a proper way to programmatically fix this issue, I don't see any other solution than contacting your host. Plus, they're paid for that.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Advertisement: