4images Modifications / Modifikationen > Tutorials

[TUT] One Image - Three Sizes

(1/7) > >>

mawenzi:
 :flag-en: - first only a englisch version ...
 :flag-de: - eine deutsche Version kommt bald ... oder später ... ;) ... zwischenzeitlich nutze diese Deutsche-Google-Übersetzung ...

... A answer of your "Three Images Request" ...
... it is not a MOD ... it is only a tutorial ... the MODs are already there ...
... three image sizes by uploading of one image via website / browser ...


* 1. image size - Thumbnail  on category / search list ... (e.g. 100 x 75 px - settings via ACP by default)
* 2. image size - Medium Image on detail site ... (e.g. 800 x 600 px - settings via ACP after modifying)
* 3. image size - Big Image for downloading or in extra window ... (e.g. 1.600 x 1.200 px - the original image)
... if you want to show these three image sizes on your 4images website, you can modify your website as following ...

1. [Mod] Auto image resize on upload
http://www.4homepages.de/forum/index.php?topic=7700.0

2. [MOD] Auto copy original file to /big/ folder by resize on upload
http://www.4homepages.de/forum/index.php?topic=7700.msg22313#msg22313

3. [MOD] Alternate directory for download files
http://www.4homepages.de/forum/index.php?topic=7499.msg33712#msg33712

4. [Mod] Show original image in new window by clicking on image
http://www.4homepages.de/forum/index.php?topic=3236.0

... this will show you one solution of your "three images request" ...
... you can also find some other ways and solutions of a "three images request" here in the 4images forum ...
... and if you would like to test all these MODs together as "One Image - Three sizes" ...
... then feel free to upload a big nice image on my website ...
... as reg. user without image activation ... as unreg. user with image activation by admin ...


... But remember ... with the resizing MOD you are loosing the exif-infos and the iptc-infos from your images ...
... but there are still other ways to show the exif-infos / iptc-infos on the detail-page ...
... the loosing of the exif-infos / iptc-infos is not a 4images problem ... it's caused by using of the modul "GD Bibliothek" for resizing (look in your APC-settings) ...
... here some solutions to show exif-infos / iptc-infos on detail-page by using resizing MOD during the image upload via browser / website-uploadform ...

1. by storing of the exif-infos / exif-infos during the upload process ...
    [MOD] EXIF V.1.7.6 Suchfelder Erweiterung : http://www.4homepages.de/forum/index.php?topic=21053.0 ...
    [MOD] IPTC V.1.7.6 Suchfelder Erweiterung : http://www.4homepages.de/forum/index.php?topic=21141.0

2. by using of the big-folder solution ( storing of the original image in the big-folder ) and reading of the exif-datas from the "big"-image ...
    [TUT] One Image - Three Sizes : http://www.4homepages.de/forum/index.php?topic=20496.0 ...
    and then is to change the path to the big-images in the "exif function" and "iptc function" in includes/functions.php ...
    [Snippet] Exif-Info from big images : http://www.4homepages.de/forum/index.php?topic=26066.msg142093#msg142093

3. by using of "ImageMagick" instead of "GD Bibliothek" for image resizing ( via your APC-General Settings, if it is possible by your Host ) ...


Other solutions of a "Three Images Request" ...

- [Addon] Highslide from Thumbnail Image : http://www.4homepages.de/forum/index.php?topic=20461.0
- [TUT] 3 Bildgrößen mit phpthumb : http://www.4homepages.de/forum/index.php?topic=7131.0
- [MOD] Details Ansicht / Größe des Bildes begrenzen : http://www.4homepages.de/forum/index.php?topic=9885.0
- [Addon] Huddletogether-Lightbox : http://www.4homepages.de/forum/index.php?topic=11115.0
- [Snippet] Unterschiedliche Bildgrößen in details und postcard : http://www.4homepages.de/forum/index.php?topic=21980.0
- [MOD] Scale Images to fit in browser/ Bilder dem Browser anpassen : http://www.4homepages.de/forum/index.php?topic=15680.0
- [MOD] PHPThumb for Smaller detail image preview (to save traffic) :  http://www.4homepages.de/forum/index.php?topic=25061.0
- [Snippet] Integrar script timthumb.php a 4images : http://www.4homepages.de/forum/index.php?topic=26070.0


... and if you want a solution of your "three images request" by uploading via FTP ...
... then you need a new /admin/checkimages.php ...
... but this should be a new tutorial / mod ...

Nicky:
thx detlef  :!:

_AsX_:
Thank you :)

Merci ...

lona_jasty:
I have installed all these mods, & happy with them. But I have a little problem, I hope mawenzi will help me

As image resize by this mod (for better view of gallery)
http://www.4homepages.de/forum/index.php?topic=7700.0

the problem is when user download image by download button, resized image download instead of full size image. I mean, I have uploaded 1600x1200 images, which I resize to 600x480 for better view, 1600x1200 has been copied in big folder, but when user download image by download button, it download 600x480 resolution image instead of downloading 1600x1200. But user can download full size image of 1600x1200, by click 600x480 images, by using this image.
--- Quote ---[Mod] Show original image in new window by clicking on image
http://www.4homepages.de/forum/index.php?topic=3236.0
--- End quote ---

This problem has been fixed by this Mod

--- Quote ---[MOD] Alternate directory for download files
http://www.4homepages.de/forum/index.php?topic=7499.msg33712#msg33712
--- End quote ---

So, my problem is only this, I have to upload the same image for 3 times, First in category, then in big folder & in download folder, The image in category got resized, but the image in image in big & download folder are same, same size & same resolution, So, can I use only one directory instead of these two, this will save my disk space.

Any Suggestion ?

Waiting for response!

mawenzi:
... mmm ...
... after you install all the modifications from this tutorial the download must work from the big-folder ...
... sometimes you must change the folder name fom "download" to "big" in the MOD from Chris (Alternnate ... ) ...
... the right way is ... you must only upload one image ... not the same image 3times ...

Navigation

[0] Message Index

[#] Next page

Go to full version