studio

site development

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: thumbs folder?
#251
thumbs folder? 6 Months ago Karma: 0
Is it possible to set smartresizer to save all made thumbs in separate folder (other than: images/stories)

I have a news portal site, therefore i have a lot of images in that folder (around 1000) is it very hard to find wanted image without thumbnails in that folder, but with thumbnails that job is 3x harder.

folder can be for axample: "images/stories/thumbs" or else
bhcrow
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/25 00:39 By bhcrow.
The administrator has disabled public write access.
 
#252
thumbs folder? 6 Months ago Karma: 0
SOLVED:

in "smartresizer.php" i changed lines 215-222 to:

if ($onsite) {
$full_path = JPATH_ROOT . DS . $relpath;
$thumb_path = JPATH_ROOT . DS . 'images' . DS . 'stories' . DS . 'thumbs' . DS . $just_name . $aththumb_ext . $thumbprefix . $extension;
$thethumb = JURI::base() . 'images' . DS . 'stories' . DS . 'thumbs' . DS .$just_name . $aththumb_ext . $thumbprefix . $extension;
} else {
$full_path = $link;
$thumb_path = JPATH_ROOT . DS . 'images' . DS . 'stories' . DS . 'thumbs' . DS . $just_name . $aththumb_ext . $thumbprefix . $extension;
$thethumb = JURI::base() . 'images' . DS . 'stories' . DS . 'thumbs' . DS .$just_name . $aththumb_ext . $thumbprefix . $extension;

i manually add folder "thumbs" in "images/stories/
anyway, this is great plugin, thx
bhcrow
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/25 01:42 By bhcrow.
The administrator has disabled public write access.
 
#254
thumbs folder? 6 Months ago Karma: 6
Pay attention to images with the same name, but different location, for example:
images/stories/image.jpg and images/stories/folder/image.jpg.

If thumbnails saved to the same directory last thumbnail will override previous thumbnail.
Igort
Administrator
Posts: 375
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/25 13:43 By Igort.
The administrator has disabled public write access.
 
#256
Re:thumbs folder? 6 Months ago Karma: 0
Could you indicate exactly which code you're replacing with your new code? I would like to have this functionality for my site as well. Also, is it possible to modify the code to address the issue Igort covered about the thumbnails having the same name, i.e. the thumbnail would get a name like image_thumb1.jpg
standoutsites
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#257
Re:thumbs folder? 6 Months ago Karma: 6
The main idea to make unique file name is to add original image file creation date and time to thumbnail file name.
For example:

original file name: image.jpg, file creation date and time 2010.01.26 11:30:25
thumbnail file name: image_thumb20100126113025.jpg

Unfortunally I have no time at present to add this feature to plugin, but I'll do it as soon as I get time. Maybe you try to implement it?
Igort
Administrator
Posts: 375
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/26 08:43 By Igort.
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Igort
get the latest posts directly to your desktop

Announcements

Экономичность и качество.
Несовместимые ранее понятия стали возможными у нас благодаря применению новейших технологий сайтостроения. Современная система управления сайтом, тщательное тестирование, модульность сайта - все это позволило сократить затраты на производство.