![]() |
Quote:
http://www.xxxxxx.com/devforum/testa...s.php?i1=22804 Output ... Watermark system finished Script end. When I run preview or look at attachments, no watermark shows. In preview, I still don't see demo pic. Regards, Doug |
In your cache directory, do files appear?
If you download one of those, rename the extension to .jpg (or the according image format) and view them in the windows image viewer, do you see watermarks? If not, PM me your login credentials and I take a look myself. Very strange. |
Quote:
Downloaded attachment pic and nothing showing anywhere on it... Regards, Doug Update: I just went back to the devforum and checked it again. I have no idea why, but all of a sudden watermarks are displaying on both attachments and in-line attachments. :eek: The "preview" pic still doesn't show, but it's at least working live now, so I guess we can start some real testing. :) |
i dont use id's in my url's
this is the error Invalid SQL: SELECT a.contenttypeid FROM attachment AS a WHERE a.attachmentid = 2006-I-drive-a-eg-4-door; MySQL Error : Unknown column 'I' in 'where clause' Error Number : 1054 Request Date : Wednesday, May 25th 2011 @ 08:14:14 AM Error Date : Wednesday, May 25th 2011 @ 08:14:14 AM Script : http://nycjdm.com/testattachments.ph...ve-a-eg-4-door Referrer : IP Address : 24.136.115.58 Username : XXX Classname : XXX MySQL Version : 5.0.92-community |
Which SEO Addons do you use?
Also: Which vB version do you have? |
i have 4.1.3
Im using VB's Friendly URL's built in feature i have mine set to Basic Friendly URL's |
Interesting, I'll figure it out!
|
Some questions and thoughts ... :)
It's obvious that using the cache approach, this mod would cause a duplication of attachments, which isn't a problem for people with large hard disk space available. However, what I was wondering was, is there an impact on performance that would slow down the forums with the mod having to intercept every attachment being viewed by the user, then save it to the cache, then retrieve it again? Thanks for any feedback .. Regards, Doug |
It's waaaay cheaper reading a cache file from disk than regenerating the image for every viewer.
Re-generating means: - load attachment from file or database - check if large enough, etc. - load watermark file - apply watermark file - output Loading from cache means: - load cached image file - output Hard-disk drives use an internal page cache as well, so it's the best way to gain optimal performance. For those with limited disk space, I implemented the cache table, which only keeps a fraction of the attachments which have been viewed recently in the cache. This should allow optimal control between performance and disk usage. Of course the worst case then would be, if an user views all attachment images one after another. But then again, it's a server and they're optimized to handle this kind of stuff. If you have more questions or suggestions about performance and cache behaviour, feel free to ask :) |
Quote:
I think I might try to move this to the live forums, but I'm a little worried that table didn't get created and added to the database during the install. Should I wait until you've finished your beta testing? Regards, Doug |
Quote:
I suggest to install the mod on your live system too, if the same issue occurs, just execute the same SQL queries again and it should work. There's nothing which could break by that. :cool: |
Can't get this to work, no attachment is showing and the watermark is not showing neither only a red x instead.
In admincp i can see the watermark on the preview picture, although it still says: watermark file not found with a yellow triangle. Can I pm you with some details to get some help ?? Thanks in advance... |
Quote:
|
I have a slightly special requirement for our site, potentially using this mod ... :)
Would you be interested in some contract work to modify this slightly to meet our needs? Thanks for your work... appreciated as always ... :up: Regards, Doug Edit: BTW, forgot to mention that I installed this on our "live" 4.1.3 forums and it's working fine. The install there added the plwm table that was missing when we installed it on our devforums. For whatever reason, the table inserted correctly on the "live" forums install, so I didn't have to do the manual SQL thing. So far, is working well .... :up: |
Nice to hear!
You can send me a pm with your requirements, we'll work something out :) |
1 Attachment(s)
Quote:
Update: Been testing on our live system and there are no crashes or show stopper errors, but we are experiencing a pic anomaly that I can't explain. Look at the two pics attached. I happened to check a pic and noticed that it had a solid grey bar along the bottom (see left pic) which looked odd to me, since I didn't remember it that way before I installed the watermark mod. I then checked some other pics and some were fine, while others also had the grey bar along the bottom. So, I went into AdminCP and looked at the options for the mod to see if there was anything obvious there. It looked fine and the watermark was showing, as well as your sample dog pic with it on it. So, I simply hit the submit button, then some activity at the top of the screen occurred, showing some files being handled by the mod. Now, the surprising thing. I went back and looked at the same pics that had the grey bar and now they had the watermark appearing just fine, as shown in the right pic with the correct watermark in bottom right corner of pic. :eek: :confused: Since then, I've been monitoring the attachment pics and every once and a while, pics start appearing when selected with the grey bar again. If I repeat the AdminCP process of doing nothing more than hitting the submit button, it fixes the problem with all the pics again. I can't explain what's happening, or how to fix the problem permanently. Any ideas? :) By the way, I've also attached the watermark PNG file. Regards, Doug |
1 Attachment(s)
Another follow up ....
This grey bar thing seems to be happening a lot more .... I selected a pic from a post that had the bar, which was supposed to be a watermark. I then physically went into the server via FTP and looked at the pic as it's stored in the mod's cache file and it looks fine (see pic below). However, if I look at it through vBulletin's attachment view function it has the grey bar. So, I went into the mod's Cache Stats function in AdminCP and checked the "yes" box, then ran it. A bunch of processing of files occurred saying "Ok", then it returned to the AdminCP. Upon viewing the pic now through the vBulletin attachment capability, the pic now had the watermark and the grey bar was gone. :confused: Regards, Doug |
The grey bar can be explained like this:
If the watermark gets applied and the image saved in the cache, the filesizes differs, because the watermark consumes more file size. Now, vbulletin queries the file size from the original files and sends them in the HTTP Header so the browser knows how many bytes will be transferred. The Mod modifies this number with the cached file, so the whole image from the cache gets transferred completely. In the earlier development states i forgot this step, so grey bars appeared. However, it's very odd that you experience grey bars, this shouldn't happen anymore. Possible explanations are scripts and/or other mods who compress image files or use their own caching methods. Do you use any of those? Always remember to clear your browser cache while testing the watermark behaviour. STRG+F5 should work as a clean reload. |
Quote:
Quote:
Well, if you have any debug method of testing this for you, I'd be happy to give it a try ... Until then, I'd better turn off the mod, as members are sending emails about why their pics they uploaded have a grey bar on the bottom. :D Thanks for your help ... :) Regards, Doug |
Quote:
I was thinking about your question. We do use "Memcache" as a basic Linux add-on, which in-turn uses vbOptimize It's a great add-on that dramatically speeds up our forums, but I don't know why it would affect your mod, if at all. Regards, Doug |
Another follow up ... :)
I think I found a pattern with the grey bars, but it doesn't make any sense. It seems to only happen, at least on our site, with pics that are very large when expanded to full size, from their small thumbnail. I don't mean size as in bytes, but rather size as in HxW dimensions. Regards, Doug |
Quote:
|
Quote:
Thanks .. :up: Regards, Doug |
1 Attachment(s)
Update ... :)
Did so more research and there's definitely a pattern of only grey bars appearing for pics over a certain HxW ... For example, it seemed to be working fine on recent uploads, then a member just added 3 pics that are 1279px ? 959px, they display fine, however, all three have a grey bar across the bottom. I noticed that another member immediately afterwards uploaded some pic attachments that were less than 1024x768 and the watermarks show just fine on them ... Hope that helps debug things ... :up: Regards, Doug Edit: I've added another example that shows how large pics seem to a factor in triggering the grey bar. The pic attached is one a member just uploaded as an attachment and it's 2448px ? 2958px (scaled by vBulletin for internal storage to 532px ? 643px). |
Quote:
|
1 Attachment(s)
Quote:
The thing is... The url "http://nycjdm.com/testattachments.php?i1=2006-I-drive-a-eg-4-door" seems to be completely wrong. Did you enter it by yourself? Because that's not the way it was intended, maybe you misunderstood the parameter? Or did the script redirect you to this url? Lets say you browse your album, you should find the id even with seo urls enabled. Check the screenshot where to find it: Attachment 129906 You'd then enter the id into the test url like this: http://nycjdm.com/testattachments.php?i1=13 This way, the test script will use the image with id 13 for the testing. |
Quote:
Failed @ 114 |
Just updated with Version 1.1 which should fix a few problems
Quote:
PHP Code:
PHP Code:
|
working perfectly thanks so much!!!
|
You mean the new version works now? or the test script?
wut? :D |
the test script, and the product..
|
This module only works with attached images?
|
Quote:
|
Quote:
Which version of vbulletin are you testing this on? Nice mod. I look forward to the next update :) |
Quote:
The mod takes the image data either from database or file system according to your vB config, applies the watermark image, caches the image file for next request and prints the image to the screen. Quote:
|
how about performance? Anyone using this Hack on a big board?
Quote:
When will this mod be stable? |
Quote:
The image processing should be quite performant, if you choose a bigger cache size, the images only need to be processed once and can then be viewed 100+ times without the need to re-process them. Quote:
Idealy, it should remain outside the httpdocs directory. Quote:
If it works for your configuration, you can consider it "stable". I suggest to test it in a safe environment with the same webserver configuration and see if all works as intended. |
Whoa I just tried this and now none of my images are visible on my site that were in threads? What happened? How do I fix this?
|
Is there a way that we can set in the option to have the watermark in random position between the four corners of the image(Top Left, Top Right, Bottom Left, and Bottom Right)?
|
Quote:
Do you see the watermark in the adminCP settings page? Or is there no image at all? Do you see any warning symbols in the product's settings? You can PM me your forum data so I can take a look myself. I guess it's just a configuration issue. Quote:
|
All times are GMT. The time now is 08:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|