« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « PHP Parse Error » PHP error debug Error: imagecreatefromjpeg(): 'assets/galleries/75/21100_0091.jpg' is not a valid JPEG file Error type/ Nr.: Warning - 2 File: /homepages/35/d146950517/htdocs/modx/assets/snippets/maxigallery/watermark/Thumbnail.class.php Line: 183 Line 183 source: $this->img["src"] = ImageCreateFromJPEG ($imgfile); Parser timing MySQL: 0.2272 s s (23 Requests) PHP: 0.4760 s s Total: 0.7031 s s
Hi,
So I’ve been doing this more advanced gallery snippet for a while and thought, that it’s ready for the public viewing now. It is still pretty much work in progress, but very usable in the current state too. I started to work on this snipped based on EtoGal and many thanks goes to it’s authors (hugelmopf + mikef) for their hard work. MaxiGallery is evolved from it’s origin alot and have tons of great new features. Main features being:
For those interested, I always thought this was a nice implementation of a table free gallery.
Definitely I would rather have a fluid design with CSS margins/padding to space them appart. Glad to see that in the "To Do" list.
Just some ideas.
Problem.
I have the snippet on my server now, but I’m getting an upload problem.
When trying to upload a single 1MB jpg file (or multiples) and I get the error message...
Interesting to see what you’ve done with Etogal, but disappointing to see you’ve not provided any means for people to identify the original authors (a nickname from another board isn’t much of a credit!). I’d have thought a link to the authors’ sites to show what they’ve done with it would have been appropriate, and a link to the original source. (And, just out of politeness, a message to them to let them know what you are doing with it.)
Didn’t have lots of time to play, but the new version appears to be working fine for me now. Positioning of thumbnails on the page is messed up in IE6 (this was true with original version, too), but I think that’s probably an issue with the CSS in my template.
Quote from: ddecjc at Apr 09, 2006, 11:09 AMOh, now I get it by looking at your site.. you have "Use friendly alias path" set to yes? right? I have not done any testing with that on yet, sorry. So I bet that’s causing both of the troubles you’re having.. I’ll release a new version of the gallery today as I have allready done some bugfixing, I’ll look into this problem now and hope I can patch it to the next version also.
My $path_to_galleries is set correctly. The problem I’m having is that, when I set "embedtype" to "popup," the link that are created for the thumbnail images are incorrect.
Interesting to see what you’ve done with Etogal, but disappointing to see you’ve not provided any means for people to identify the original authors (a nickname from another board isn’t much of a credit!). I’d have thought a link to the authors’ sites to show what they’ve done with it would have been appropriate, and a link to the original source. (And, just out of politeness, a message to them to let them know what you are doing with it.)I’m sorry that the credits were not clear enough, I’ve edited my post and tried to make it more clearer. I have also removed the snippet from download and I’m now contacting you and the original creator of Etogal to confirm if I can proceed with this snippet without any problems. I have never tried to cause any harm and I’m sorry to see that you are not liking this. I have sent you a PM with more information.
I don’t undertstand what the following snippet variables mean: &picture_target = [ number ] &manage_target = [ number ]You can set some other documents ID to these parameters and they will be used when you view the gallery pictures or manage the gallery. You have to have the same snippet call in these target documents, but add &is_target=`1` parameter to the call. So you could for example have a page what has a blog entry and some pictures related to the blog entry in a sidebar. Normally, when you click the thumbnails, it would open the larger pictures in the sidebar (if not using embedded display type) and that would mess up the layout of your site probably. You can instead use &picture_target and/or &manage_target to have the pics open in a different document where the snippet call is in more appropriate place of the template. Or if you want that the pic browser uses a competely different template.. and so on.
&manage_gallery = [ number ]You can use this if you want to open the managing of some gallery straight away when entering the page. Try it out in some document and you’ll see what I mean. You can use it for example if you wan’t to create a "centralized" gallery management thingy..
This discussion is closed to further replies. Keep calm and carry on.