It is currently Mon Dec 18, 2017 8:42 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Oct 16, 2010 11:28 am 
Offline
Developer
Developer
User avatar

Joined: Tue Aug 17, 2010 2:38 pm
Posts: 445
Location: Novi Sad, Serbia
Currently component is using original images. This slows down loading a lot, for opening a galleries with great amount of images. It would be wise to use thumbnail images.

There are two possible solution for this:

1. First is to use existing thumbnails and to create missing thumbnails and then use them, like plugin works.

2. Other is to create thumbnails in cache, and use them from there, like similar gallery systems works.

_________________
Admiror Design Studio


Top
 Profile  
 
 Post subject: Using thumbnail images in component
PostPosted: Sat Oct 16, 2010 11:28 am 
Top  
PostPosted: Thu Oct 21, 2010 1:03 am 
Offline
Contributor
Contributor

Joined: Tue Sep 28, 2010 5:47 pm
Posts: 43
(As you have stated you maybe want to save some image info in a database)

3. Save the thumbnail info in a database (kinda like your cache idea, but permanent as SQL data)

4. Save the thumbnail picture and the info in a database (the picture will be inside a BLOB field), and you could get all thumbs from the database. You could also add more info in the database, like 'show/don't show' and 'priority/order', the image description and image title. Maybe even more.

P.


Top
 Profile  
 
PostPosted: Thu Oct 21, 2010 8:37 am 
Offline
Developer
Developer
User avatar

Joined: Tue Aug 17, 2010 2:38 pm
Posts: 445
Location: Novi Sad, Serbia
Actually, I did some testing with caching icons and it went just fine. Newest BETA release will use thumbs from cache.

But, idea of saving images and descriptions into database is worth of talking. Vasiljevski has similar ideas, he say this can be solution for many problems... Me personally love simplicity of image folder with XML files, possibility to move them around and make backups, but this permissions problems on Linux servers are quite headache...

_________________
Admiror Design Studio


Top
 Profile  
 
PostPosted: Mon Nov 01, 2010 11:49 pm 
Offline
Contributor
Contributor

Joined: Tue Sep 28, 2010 5:47 pm
Posts: 43
Consideration for database would be the quicker access. Opening & reading files is slow.
Maybe we can do a speed test some time? :)

Permissions isn't really a hard problem, but it's often harder to implement.
You can solve the permissions problem by using a folder that you created yourself, like the Thumbs folder. I understand that you don't want to use that folder for the xml files, but maybe consider creating a XML folder that contains all the XML files? That way the script has the permission to write files.

I still would go for SQL tho. I like the speed and the versatility. You can easily add attributes when you need them without 'bothering' existing software, and it's quicker.

(9 years ago) we used yabb-forum, that used txt files for messages. It was SOOOO slow. We then switched to yabbse-forum, that uses MySQL, and it is so much quicker! :)

P.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group