4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: bgmurphy on May 01, 2003, 08:28:00 PM

Title: need intermediate preview image on detail page !!!
Post by: bgmurphy on May 01, 2003, 08:28:00 PM
8O hey jan, vano, vividview -

can anyone create some coding so that when one views the detail page they get a preview image (larger than the thumbnail - smaller than the original image) so that the user can see the entire image and description/iptc info without having to scroll thru the entire page.

i have clients that require a full 300 dpi image set to 10" longest (3000 pixel) dimension and if i resize the master image .. then they lose the resolution/sizing etc ..

i have not been able to find a thread/mod that creates this intermediate image for the detail page ...

can someone offer some assistance with this mod and post the appropriate coding for each of the php/html files?

requirements:
1) a) preview mod should auto reduce the longest dimension to something like 1/5 the original size ~~ 400-600 pixel x 200-300 dpi to conserve space (max file size - 50kb)

   b) open as a separate static window (wishlist item !)
   
2) have a plugin checker so that it functions as an auto-checking plugin for existing preview images similar to the files-check plugin for thumbnails? (or be combined with the files-check plugin?)

3) when image is lightboxed or selected for download - then the master image is selected and placed in the queue/zip package etc ..

all help is appreciated
bruce
Title: need intermediate preview image on detail page !!!
Post by: Chris on May 01, 2003, 09:11:09 PM
This should get you started:
http://4homepages.de/forum/viewtopic.php?t=1861
Title: need intermediate preview image on detail page !!!
Post by: V@no on May 01, 2003, 09:28:51 PM
Quote from: bgmurphy
i have been thru this thread ... for me it is overkill !!

if this is overkill for u, then what u r trying to do is deffenetly overkill for the server. if u have 20 simulation connections (visitors) and for each of them 4images has to create different image sizes, u can imagine how long each of them has to wait untill it finished and start sending the pictures the them? Belive me, it's not worthit.
btw, if u do image resize in the admin control panel, how long it takes to resize one image from 1024x768 to 800x600 ? about 2 sec? or more?
Title: need intermediate preview image on detail page !!!
Post by: bgmurphy on May 01, 2003, 09:29:31 PM
Quote from: Chris
This should get you started:
http://4homepages.de/forum/viewtopic.php?t=1861


chris ...
i have been thru this and it is not what i need .. way to many options ... and also adds too much overhead to my host storage (limited !!)

i am not php literate !! .. can you modify this code so that it matches my requirements more closely?

thanx
bruce
Title: need intermediate preview image on detail page !!!
Post by: bgmurphy on May 01, 2003, 09:31:20 PM
Quote from: V@no
Quote from: bgmurphy
i have been thru this thread ... for me it is overkill !!

if this is overkill for u, then what u r trying to do is deffenetly overkill for the server. if u have 20 simulation connections (visitors) and for each of them 4images has to create different image sizes, u can imagine how long each of them has to wait untill it finished and start sending the pictures the them? Belive me, it's not worthit.
btw, if u do image resize in the admin control panel, how long it takes to resize one image from 1024x768 to 800x600 ? about 2 sec? or more?


vano ..

all i want is one intermediate file size image ... so that the net result is thumbnail -> preview image-> master download image

i use fotostation to post temp web pages and it creates a thumb and then a preview image .. and then allows the user to d/l the full size to their computer ( this is the basis of my requirements) ...

all i need is the intermediate directory holding the preview image .. which is called by the detail page .. which then call the master image when selected for download


bruce
Title: need intermediate preview image on detail page !!!
Post by: V@no on May 01, 2003, 09:38:21 PM
then, how about this one?
http://4homepages.de/forum/viewtopic.php?t=3236
Title: need intermediate preview image on detail page !!!
Post by: bgmurphy on May 01, 2003, 09:43:27 PM
Quote from: V@no
then, how about this one?
http://4homepages.de/forum/viewtopic.php?t=3236


thanx vano -- its closer .... but !!!

it still does not create a smaller preview (that is what i need !!)

how hard is it to create a preview image mod - that reduces the original image ala my original post? ...

i will pm you my link with your log so you can see my prob

thanx
bruce
Title: need intermediate preview image on detail page !!!
Post by: V@no on May 01, 2003, 10:07:36 PM
Quote from: bgmurphy
it still does not create a smaller preview (that is what i need !!)

well, that's actualy exactly what my mod does:
it show u the preview image, and when u click on it, it opens the original image.
also, there is another mod, that resize images to smaller size when u upload them, not sure if I posted addon, but at my site I use both of those mods, so when u upload an image, it first copy original image into /big/ folder then resize it and place it as "preview" image.
also, it's not a problem to make all this do from admin control panel - just upload your images though FTP your images (u can find the tutorial how to do that in the FAQ forum), then resize them, it will copy all original images into /cat_id/big/ folder, so, basicaly it's all automaticaly could be done.
Title: need intermediate preview image on detail page !!!
Post by: bgmurphy on May 01, 2003, 10:17:23 PM
Quote from: V@no
Quote from: bgmurphy
it still does not create a smaller preview (that is what i need !!)

well, that's actualy exactly what my mod does:
it show u the preview image, and when u click on it, it opens the original image.
also, there is another mod, that resize images to smaller size when u upload them, not sure if I posted addon, but at my site I use both of those mods, so when u upload an image, it first copy original image into /big/ folder then resize it and place it as "preview" image.
also, it's not a problem to make all this do from admin control panel - just upload your images though FTP your images (u can find the tutorial how to do that in the FAQ forum), then resize them, it will copy all original images into /cat_id/big/ folder, so, basicaly it's all automaticaly could be done.


i'll check it out ...

 :roll:

looked it over ... and it may work .. i need to play with the resizing of the image (smaller) ... was wondering where the code was for resizing the image ..... you have set it for roughly 1/2 the original .. i'd like to make it 1/5 -  1/6 the original ..

thanx
bruce
Title: need intermediate preview image on detail page !!!
Post by: V@no on May 01, 2003, 11:04:27 PM
actualy it uses fixed sizes, but it's easy could be changed to 1/2 of original.
Title: need intermediate preview image on detail page !!!
Post by: bgmurphy on May 01, 2003, 11:10:05 PM
Quote from: V@no
actualy it uses fixed sizes, but it's easy could be changed to 1/2 of original.


vano -

where is the coding so that i can adjust it to 1/5 or 1/6 the original??
searched thru the routine and could no find the call !!

also .. reading thru the original post for the mod .. there were lots of pieces that got cleaned up .. do you have a final version avail?

 :lol:

bruce
Title: Re: need intermediate preview image on detail page !!!
Post by: skidpics on October 09, 2007, 05:34:31 PM
The above mentioned links are down.  Can someone tell me where they were moved to?

Intermediate images are good, if you are using them to post to forums via hotlinks..  The thumb is usually too small, and depending on your settings, the actual image way too big for lets say myspace.  A smaller intermediate would work better for forum postings, etc.. 

Title: Re: need intermediate preview image on detail page !!!
Post by: mawenzi on October 09, 2007, 05:53:18 PM
... here are some links ...
... http://www.4homepages.de/forum/index.php?topic=17870.msg95203#msg95203 ...
... and here are the right links from above, the links from V@no and Chris ...
... http://www.4homepages.de/forum/index.php?topic=1861 ...
... http://www.4homepages.de/forum/index.php?topic=3236 ...
Title: Re: need intermediate preview image on detail page !!!
Post by: KurtW on October 09, 2007, 05:59:18 PM
Hi,

and phpthumb is also a easy way to generate smaller/ differents image sizes. (with option of a watermark)

Kurt
Title: Re: need intermediate preview image on detail page !!!
Post by: KurtW on October 10, 2007, 05:58:45 AM
Hi,

yes...

Here a gallery, where i added phpthumb:
http://www.biker-click.de/index.php (with Copyright r. license)

All images was generated new in the first view and saved in a new folder.


Here the phpthumb Page with download , previews and download:
http://phpthumb.sourceforge.net/#download (http://phpthumb.sourceforge.net/#download)

Here the code for the media/jpg.html:
Code: [Select]
<img src="./phpthumb/phpThumb.php?src={media_src}&w=800&h=600" border="0" alt="{image_name}" />
Size is here: 800x600


Kurt
Title: Re: need intermediate preview image on detail page !!!
Post by: KurtW on October 11, 2007, 05:50:11 AM
http://www.4homepages.de/forum/index.php?topic=1861 (http://www.4homepages.de/forum/index.php?topic=1861)
Title: Re: need intermediate preview image on detail page !!!
Post by: thunderstrike on October 11, 2007, 08:21:21 PM
Quote
What is your take on this, Thunderstrike?

My take is read the other author line on my signature.

Quote
- I no support other authors MOD for intergrate  :!:
Title: Re: need intermediate preview image on detail page !!!
Post by: mawenzi on October 11, 2007, 10:22:17 PM
So, does anyone have a mod they found that automatically does this, ...

... yes ...
... but it seems, that my links are not from interest for you ... but this is my last hint ...
1. vers. : one image upload via ftp and 3 images are in your gallery (thumbnail, medium, original) by using checkimages in ACP ...
2. vers. : one image upload via uploadform in your gallery and 3 images are in your gallery (thumbnail, medium, original) ...
3. you can use 1.vers. and 2.vers. ... I do it ... and everyone can test it ...
4. you can show the large / original image in a extra window or use it for the download ...
5. and there are some more options ...
... end ...
Title: Re: need intermediate preview image on detail page !!!
Post by: skidpics on October 12, 2007, 08:27:57 AM
So, does anyone have a mod they found that automatically does this, ...

... yes ...
... but it seems, that my links are not from interest for you ... but this is my last hint ...
1. vers. : one image upload via ftp and 3 images are in your gallery (thumbnail, medium, original) by using checkimages in ACP ...
2. vers. : one image upload via uploadform in your gallery and 3 images are in your gallery (thumbnail, medium, original) ...
3. you can use 1.vers. and 2.vers. ... I do it ... and everyone can test it ...
4. you can show the large / original image in a extra window or use it for the download ...
5. and there are some more options ...
... end ...


I understand what you are saying I think.  You use 2 mods to accomplish your task, correct?

I use a upload mod that you can allow original images saved in 'big' folder..  This might be the same thing..

How about this:  When the details page loads the image, search to see if the same named image is in the 'big' folder, if so,  allow a 'display large image' clickable link right below the details image?  If not, no link will be show below the image. How easy would that search be to set up?
Title: Re: need intermediate preview image on detail page !!!
Post by: mawenzi on October 12, 2007, 11:06:58 AM
How easy would that ...

... it is allready done ... so, it is easy ... ;)
Title: Re: need intermediate preview image on detail page !!!
Post by: skidpics on October 12, 2007, 03:54:41 PM


Here the code for the media/jpg.html:
Code: [Select]
<img src="./phpthumb/phpThumb.php?src={media_src}&w=800&h=600" border="0" alt="{image_name}" />
Size is here: 800x600


Kurt

what do I do with this code?
Title: Re: need intermediate preview image on detail page !!!
Post by: KurtW on October 12, 2007, 03:58:56 PM
in templates/default/media/jpg.html

replace the code with this...

Kurt
Title: Re: need intermediate preview image on detail page !!!
Post by: skidpics on October 12, 2007, 04:49:52 PM
in templates/default/media/jpg.html

replace the code with this...

Kurt

Trying to use phpthumbs, but no luck..

I have the  phpthumbs directory in the root and 4images running in root/4_images right now.. - I  edited the jpg.html file in my media directory for my template with:

 <img src="/4_images/phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />


I have thumbs, but no images are showing.  should the phpthumbs/ above be something like ../phpthumbs/ ??


I am getting this error:  "//4_images/phpThumb/./data/media/22/(anyfilename).jpg" does not exist.

If I remove the '/', it shows nothing, just a filename
Title: Re: need intermediate preview image on detail page !!!
Post by: skidpics on October 12, 2007, 09:10:46 PM
in templates/default/media/jpg.html

replace the code with this...

Kurt

Trying to use phpthumbs, but no luck..

I have the  phpthumbs directory in the root and 4images running in root/4_images right now.. - I  edited the jpg.html file in my media directory for my template with:

 <img src="/4_images/phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />


I have thumbs, but no images are showing.  should the phpthumbs/ above be something like ../phpthumbs/ ??


I am getting this error:  "//4_images/phpThumb/./data/media/22/(anyfilename).jpg" does not exist.

If I remove the '/', it shows nothing, just a filename

Got it running!  thanks!  Now, just need to figure out how to include the 'intermediate image' into my hotlink coding.

I fixed the issue like this:

From:  <img src="/4_images/phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />

to: <img src="phpThumb/phpThumb.php?src=.{media_src}&w=600" border="0" alt="{image_name}" />

I just added the . before {media_scr]