PDA

View Full Version : AutoThumbing of all Attachments


cinq
04-28-2003, 10:22 AM
Have this problem whereby some users upload images that are slightly big ( i did set the max dimensions already to 640x400 ) but it still kind of distorts the look of the page.

Moreover it takes pretty long for the page to load.

Is there any hack which will thumb the attachments and upon clicking it opens the full image in a new window ?

Have tried searching for this hack but i dun think i managed to come across anything like it , though i saw this being implemented in some sites that i visited.

Pls advise.
Many thanks

cinq
04-30-2003, 02:27 AM
sorry to do this but ... any1 ?

filburt1
04-30-2003, 02:31 AM
I've already done this but am selling it because it is somewhat complex to code (requires arguably tricky math and use of the GD2 library). However it is possible if you want to do it yourself anyway via the GD2-specific functions in PHP.

Pollo
04-30-2003, 05:08 AM
I tried searching for something *like* what you asked about that I have seen. The hack I saw reduced the attached image to a thumbnail (though it did not actually thumbnail the image). Full image loads, only smaller (size pre-defined), so it won't throw off your pages.

Unfortunately, I can only tell you about it because I couldn't find the damn thing. The hack above is out there though, sorry.

EDIT: Not what I was thinking, but someone posted this today: https://vborg.vbsupport.ru/showthread.php?s=&threadid=52344

cinq
04-30-2003, 05:22 AM
Thanks pollo , i can do that to by simply constricting the attachmentimage template.

But i am looking for actual thumbnailing.

Filburt's paid hack seems to be something like what i want.
Will see how it goes.

Freddie Bingham
04-30-2003, 04:37 PM
Save your money and wait for vB3. It is not that far away now.

flup
04-30-2003, 04:41 PM
Isn't there a way to do it like:

if (($attachment == *.jpg) or ($attachment == *.gif)) {
<img scr="theurl" width="xx" height="xx">
}

Im sure the code IS NOT good ;P
But it could be done like this IMO....

cinq
04-30-2003, 04:56 PM
well freddie , taking into considering how some time will probably be needed for the release to become fully stable and all plus all the hacks which i have going on my board to be upgradable to vb3 , might be quite a while b4 i ever get about to upgrading my board.

Am sure many others share the same sentiments as i do :)

Just considering my options here , but thanks for popping up to let us know a release is on its way :D:D

filburt1
04-30-2003, 04:59 PM
Today at 01:41 PM flup said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=389471#post389471)
Isn't there a way to do it like:

if (($attachment == *.jpg) or ($attachment == *.gif)) {
<img scr="theurl" width="xx" height="xx">
}

Im sure the code IS NOT good ;P
But it could be done like this IMO....

No because attachment.php doesn't return HTML, it returns actual file data.

vB3 sure seems pretty far away now that we've been waiting for two years...