Advertisement
[33]Media Manager improvements
- Hackwar
- Joomla! Virtuoso
- Posts: 3790
- Joined: Fri Sep 16, 2005 8:41 pm
- Location: NRW - Germany
- Contact:
[33]Media Manager improvements
1. Introduction
1.1 Scope
This document should describe a possible change to the Media Manager to enhance image processing.
1.2 Objective of the document
This document is aimed at providing a basis for a discussion about a change to the Media Manager to enhance image processing.
1.3 General remarks
1.4 Definitions
1.5 License
GNU GPL
2. What is the current issue?
The Media Manager can currently only be used to upload and delete a few select media files. It is quite complicated to keep a specific structure in the „images“ folder and also to handle different sizes of images, like a thumbnail and a „full“ picture.
3. What are the proposed improvements?
A lot of servers provide a graphics library, like GD or imagemagick. Joomla should support these and make it possible, to alter images with these. To allow other extensions to use these, too, Joomla should provide a wrapper class for these. This wrapper class should allow for conversion of image types, resizing and applying a watermark. This allows using different image libraries.
In the Media Manager itself, you can now define, if a thumbnail should be created and what the size of both the thumbnail and the real picture should be. These settings can also be made in the parameters of the component to provide a default value.
Thumbnails are not shown in the media manager, which is done through prepending all thumbnails with a „th_“ prefix and then filtering for these. In the screen to select an image in the editor, you can select if the thumbnail is inserted or the real image, in the first case, the image is automatically linked to the original, which is opened in a lightbox on click.
4. Possible uses
This allows site-designers to better control the design of articles and the images inside them.
5. Effects on...
5.1 Users
There is no negative effect to be expected on the user.
5.2 3P extensions
There is no negative effect to be expected on 3P extensions.
5.3 Performance
There is no negative effect to be expected on performance
1.1 Scope
This document should describe a possible change to the Media Manager to enhance image processing.
1.2 Objective of the document
This document is aimed at providing a basis for a discussion about a change to the Media Manager to enhance image processing.
1.3 General remarks
1.4 Definitions
1.5 License
GNU GPL
2. What is the current issue?
The Media Manager can currently only be used to upload and delete a few select media files. It is quite complicated to keep a specific structure in the „images“ folder and also to handle different sizes of images, like a thumbnail and a „full“ picture.
3. What are the proposed improvements?
A lot of servers provide a graphics library, like GD or imagemagick. Joomla should support these and make it possible, to alter images with these. To allow other extensions to use these, too, Joomla should provide a wrapper class for these. This wrapper class should allow for conversion of image types, resizing and applying a watermark. This allows using different image libraries.
In the Media Manager itself, you can now define, if a thumbnail should be created and what the size of both the thumbnail and the real picture should be. These settings can also be made in the parameters of the component to provide a default value.
Thumbnails are not shown in the media manager, which is done through prepending all thumbnails with a „th_“ prefix and then filtering for these. In the screen to select an image in the editor, you can select if the thumbnail is inserted or the real image, in the first case, the image is automatically linked to the original, which is opened in a lightbox on click.
4. Possible uses
This allows site-designers to better control the design of articles and the images inside them.
5. Effects on...
5.1 Users
There is no negative effect to be expected on the user.
5.2 3P extensions
There is no negative effect to be expected on 3P extensions.
5.3 Performance
There is no negative effect to be expected on performance
You do not have the required permissions to view the files attached to this post.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Advertisement
-
- Joomla! Intern
- Posts: 55
- Joined: Tue Oct 23, 2007 2:54 pm
Re: Media Manager improvements
I second this.
I would also recommend, it being more of a multimedia manager. Having the ability to manage audio (MP3, Wav), video (Divx, Flv, WMV, MPEG, AVI, MOV), and office documents within subcategories (Pictures, Audio, Video).
I would also recommend, it being more of a multimedia manager. Having the ability to manage audio (MP3, Wav), video (Divx, Flv, WMV, MPEG, AVI, MOV), and office documents within subcategories (Pictures, Audio, Video).
- louis.landry
- Joomla! Ace
- Posts: 1380
- Joined: Wed Aug 17, 2005 11:03 pm
- Location: San Jose, California
- Contact:
Re: Media Manager improvements
Would also be cool if you added support to move media to other folders
- Louis
- Louis
Joomla Platform Maintainer
A hacker does for love what others would not do for money.
A hacker does for love what others would not do for money.
- Hackwar
- Joomla! Virtuoso
- Posts: 3790
- Joined: Fri Sep 16, 2005 8:41 pm
- Location: NRW - Germany
- Contact:
Re: Media Manager improvements
Some people would say "This was easy". The whole resizing is really simple. Here is a really simple first example on how such a resizing could be done. This is of course way to simple to be commited to the core, but its a first draft on how to tackle this. Next to hide the thumbnails from the normal view and implement the lightbox feature. then the overrides when uploading.
You do not have the required permissions to view the files attached to this post.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: Media Manager improvements
Continuing my campaign to have language that makes sense, images is the wrong name for the default media manager folder and causes a lot of confusion. There's a regular forum question about how to upload pdfs, for example, and another one about mp3s. At this point I think virtually all of the hard coded paths to the images folder have been replaced, though I'm sure numerous extensions still use it. Also, stories does not make sense to people either, since that's a term that isn't used elsewhere. Articles is the term that is used in 1.5.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
- wshealy
- Joomla! Apprentice
- Posts: 46
- Joined: Thu Jan 19, 2006 4:12 am
Re: Media Manager improvements
I want to expand this even further. Allow the option for media to be stored in the database. If your site has multiple authors or a large product base managing media outside the article is complicated. You might want some site wide media outside the database but if it relates to specific content then it should be a related object to that content. Even if you decide media over a given size has to be external to the database the CMS should manage this. Maybe looking at some of the major media sites would help flesh this out. Media manager now doesn't seem well integrated with the articles and cumbersome to use.
W
- Hackwar
- Joomla! Virtuoso
- Posts: 3790
- Joined: Fri Sep 16, 2005 8:41 pm
- Location: NRW - Germany
- Contact:
Re: Media Manager improvements
Here is an updated version. works already nice with GD2 and without lightbox. This one creates a thumbnail and can automatically insert the thumbnail instead of the actual image and then link that thumbnail to the original image.
You do not have the required permissions to view the files attached to this post.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
-
- Joomla! Ace
- Posts: 1318
- Joined: Wed Aug 17, 2005 11:06 pm
- Location: Lithuania
- Contact:
Re: Media Manager improvements
Great initiative!
Is your solution based on phpThumb code or more simple custom library?
Maybe this White Paper should be moved to Accepted or Under Review forum?
Is your solution based on phpThumb code or more simple custom library?
Maybe this White Paper should be moved to Accepted or Under Review forum?
Lithuanian Joomla! Community http://www.lithuanianjoomla.com
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom
- aliens
- Joomla! Intern
- Posts: 87
- Joined: Fri Sep 28, 2007 4:30 pm
Re: Media Manager improvements
Nice feat, would be cool to have Hackwar's modifications inside the next release.
- Hackwar
- Joomla! Virtuoso
- Posts: 3790
- Joined: Fri Sep 16, 2005 8:41 pm
- Location: NRW - Germany
- Contact:
Re: Media Manager improvements
This is a selfmade library.Stasys wrote: Is your solution based on phpThumb code or more simple custom library?
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
- Hackwar
- Joomla! Virtuoso
- Posts: 3790
- Joined: Fri Sep 16, 2005 8:41 pm
- Location: NRW - Germany
- Contact:
Re: Media Manager improvements
a first look at phpthumb looks like its way to big for the task. The goal is not to provide a can-all-does-all image library, but a library that helps with some standard conversions. If you need more complex graphics functions, you are way better of to use the original graphics libraries instead of these simpler functions. On the other hand, if you only want to resize all images on upload to a given size and keep the ratio at all times, JImage should help you a lot.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
-
- Joomla! Ace
- Posts: 1318
- Joined: Wed Aug 17, 2005 11:06 pm
- Location: Lithuania
- Contact:
Re: Media Manager improvements
as I already said its the Great initiative! and we all would be glad seeing it implemented as quick as humanly possible!
It also would be huge gift for all Joomla community if library that helps with some standard image conversions could be implemented in Joomla! 1.5.2
Do we need to upgrade (change) Data Base to implement your solution?
It also would be huge gift for all Joomla community if library that helps with some standard image conversions could be implemented in Joomla! 1.5.2
Do we need to upgrade (change) Data Base to implement your solution?
Lithuanian Joomla! Community http://www.lithuanianjoomla.com
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom
- Hackwar
- Joomla! Virtuoso
- Posts: 3790
- Joined: Fri Sep 16, 2005 8:41 pm
- Location: NRW - Germany
- Contact:
Re: Media Manager improvements
No database changes required.
This will definitely not be included in the 1.5.x series. There will be no new features in 1.5 and all that is discussed in this forum is meant for 1.6 or later.
This will definitely not be included in the 1.5.x series. There will be no new features in 1.5 and all that is discussed in this forum is meant for 1.6 or later.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
- alan-s
- Joomla! Explorer
- Posts: 305
- Joined: Mon Aug 22, 2005 11:39 am
- Location: UK
- Contact:
Re: Media Manager improvements
Would definitely like to second, 4th?, 10th? these ideas!
if you don't know where you're going you are bound to end up somewhere....
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Jun 20, 2006 1:23 pm
- Location: france
Re: [33]Media Manager improvements
JImage is a great idea !
One big improvement would be Mass Upload with batch parameters (for all files uploaded), like :
- fit in X x Y pixels
- keep aspect ratio
- Jpeg quality
- gif conversion to jpg or png, so that PDF generation doesn't break... (FDPF has a bug with transparent images)
- Option NOT to store the original file on server (for smaller disk space usage, or if the original picture is not needed)
This would greatly help end-users.
Another possible fonctionnality is "watermarking" :
- Just adds a "picture tag" (logo or else) to your picture, blending it with the original (Zoom Gallery componant - not developped anymore - used to provide such a fonctionnality using gd2).
- Only 2 params : file name, and side/corner alignment (8 positions).
- Could be implemented either/both while uploading picture in Media manager or/and in image parameters when editing articles.
A nice wrapper for GD2 would surely help many extension developers to achieve their goals faster.
-Mato
One big improvement would be Mass Upload with batch parameters (for all files uploaded), like :
- fit in X x Y pixels
- keep aspect ratio
- Jpeg quality
- gif conversion to jpg or png, so that PDF generation doesn't break... (FDPF has a bug with transparent images)
- Option NOT to store the original file on server (for smaller disk space usage, or if the original picture is not needed)
This would greatly help end-users.
Another possible fonctionnality is "watermarking" :
- Just adds a "picture tag" (logo or else) to your picture, blending it with the original (Zoom Gallery componant - not developped anymore - used to provide such a fonctionnality using gd2).
- Only 2 params : file name, and side/corner alignment (8 positions).
- Could be implemented either/both while uploading picture in Media manager or/and in image parameters when editing articles.
A nice wrapper for GD2 would surely help many extension developers to achieve their goals faster.
-Mato
- torkil
- Joomla! Guru
- Posts: 726
- Joined: Wed Aug 24, 2005 9:34 am
- Location: Rørvik, Norway
- Contact:
Re: [33]Media Manager improvements
Well why not include functions available in phpThumb? It's overkill and too big og a library?
On the other hand: Why settle for less than excellence? Why not use something that has been thoroughly testet and that we know will work?
On the other hand: Why settle for less than excellence? Why not use something that has been thoroughly testet and that we know will work?
-
- Joomla! Ace
- Posts: 1318
- Joined: Wed Aug 17, 2005 11:06 pm
- Location: Lithuania
- Contact:
Re: [33]Media Manager improvements
cause no one done it Why you think it will work? and is out of scope cause core haven't aproved it, or did they?torkil wrote:Well why not include functions available in phpThumb? It's overkill and too big og a library?
On the other hand: Why settle for less than excellence? Why not use something that has been thoroughly testet and that we know will work?
Lithuanian Joomla! Community http://www.lithuanianjoomla.com
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom
lietuviškas Joomla! puslapis, naujienos, straipsniai, forumas, vertimai
always be open source, and be free as freedom
- torkil
- Joomla! Guru
- Posts: 726
- Joined: Wed Aug 24, 2005 9:34 am
- Location: Rørvik, Norway
- Contact:
Re: [33]Media Manager improvements
Well... you can never KNOW it will work, but you can be pretty sure it will be stable when...
It could however bloat the installation and, as you say, be deemed to be out of scope for the framework, but still...
- You have tried and tested it yourself. I have, how about you?
- You are dealing with mature software. phpThumb started in 2002 and has had stable and regular releases ever since.
- Lots of other people are using it already. phpThumb has averaged over 1500 downloads pr month since 2004.
- It is in use in alot of other projects already. Like in the JCE editor (editors pick too!) for Joomla for instance.
- Stability, predictability, security: The software is tested and mature.
- No need to reinvent the wheel. And not to mention: You can avoid doing all the mistakes and having to correct all the bugs that the people behind phpThumb has already done.
- Save time: It is easy to implement and already ready for use. You do not have to write a single line of code.
It could however bloat the installation and, as you say, be deemed to be out of scope for the framework, but still...
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: [33]Media Manager improvements
I came recently upon an issue which I solved by a hack but is not a sensible one if upgrade.
A user wants to choose another folder than images/stories for the images representing his contacts in the contact component.
As this is harcoded in list.php, I had to create there a new function where another folder was defined, and then modified admin.contact.php to load the correct folder.
Would be good to think of an access there to media manager to be able to choose images all over the images/ folder or as defined in global config.
A user wants to choose another folder than images/stories for the images representing his contacts in the contact component.
As this is harcoded in list.php, I had to create there a new function where another folder was defined, and then modified admin.contact.php to load the correct folder.
Would be good to think of an access there to media manager to be able to choose images all over the images/ folder or as defined in global config.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 6
- Joined: Fri Jan 05, 2007 5:57 pm
Re: [33]Media Manager improvements
I would like the media folder settings in the global configuration to be used throughout Joomla.
Currently in Joomla 1.5.4, the "images/stories" is hard coded in about 30 different places (screen shot attached).
Not sure what the best name would be for a general purpose folder, I've named mine "media-bin" with sub folders such as "media-bin/pdfs" and "media-bin/images", etc...
Currently in Joomla 1.5.4, the "images/stories" is hard coded in about 30 different places (screen shot attached).
Not sure what the best name would be for a general purpose folder, I've named mine "media-bin" with sub folders such as "media-bin/pdfs" and "media-bin/images", etc...
You do not have the required permissions to view the files attached to this post.
-Jeremy Foster
Re: [33]Media Manager improvements
You can already do this stuff with JCE using its internal extensions.
- bucabay
- Joomla! Apprentice
- Posts: 43
- Joined: Fri Oct 14, 2005 9:12 pm
- Contact:
Re: [33]Media Manager improvements
My wishlist for media management:
Joomla should be able to save media on any persistent storage medium and thus should have an abstract class for managing media, and events/hooks for plugins in order to save, update, edit media through the different protocols required by different storage mediums.
The abstract class methods would provide an API that allows access and management of the media by components. The media could be residing on a local disk, remote disk etc. and thus require different access protocols. Eg: file system, ftp, http, mysql, sqlite etc.
The API would then need to invoke the 3rd party plugin that is will carry out the requested operation over the correct protocol.
This architecture would also allow for multiple storage for the same media, and thus backups or mirrors to distribute load, if needed.
This can be first implemented by the media manager, and a plugin for the filesystem storage. Then when a 3rd party component is installed, it can install its own plugins for storing media on different storage systems, and thus implement its own storage, backup, load balancing etc. while still allowing its media to be accessible from media manager component through its plugin.
3rd party components would find it easier to manage media, as they would only need to invoke the methods defined in the API and not need to implement file system functions or FTP functions etc.
BTW: this could be implemented below the already existing FTP layer and/or Database Layer to really unify persistent storage in Joomla. It could also provide an interface to integrating cache solutions such as APC, Memcached etc. for the less persistent storage similar to what Query Cache is for the database but with a native Interface that 3PD can use.
Joomla should be able to save media on any persistent storage medium and thus should have an abstract class for managing media, and events/hooks for plugins in order to save, update, edit media through the different protocols required by different storage mediums.
The abstract class methods would provide an API that allows access and management of the media by components. The media could be residing on a local disk, remote disk etc. and thus require different access protocols. Eg: file system, ftp, http, mysql, sqlite etc.
The API would then need to invoke the 3rd party plugin that is will carry out the requested operation over the correct protocol.
This architecture would also allow for multiple storage for the same media, and thus backups or mirrors to distribute load, if needed.
This can be first implemented by the media manager, and a plugin for the filesystem storage. Then when a 3rd party component is installed, it can install its own plugins for storing media on different storage systems, and thus implement its own storage, backup, load balancing etc. while still allowing its media to be accessible from media manager component through its plugin.
3rd party components would find it easier to manage media, as they would only need to invoke the methods defined in the API and not need to implement file system functions or FTP functions etc.
BTW: this could be implemented below the already existing FTP layer and/or Database Layer to really unify persistent storage in Joomla. It could also provide an interface to integrating cache solutions such as APC, Memcached etc. for the less persistent storage similar to what Query Cache is for the database but with a native Interface that 3PD can use.
Support my Joomla Open Source Projects - http://www.fijiwebdesign.com/
- feldon27
- Joomla! Explorer
- Posts: 334
- Joined: Tue Aug 23, 2005 2:18 pm
- Location: Houston, TX
Re: [33]Media Manager improvements
Batch Upload is a necessity. JUpload (SourceForge link) is a good free library (not to be confused with the commercial JUpload). Writing Java Upload from scratch is not something I recommend. Unfortunately JUpload Demo is broken at the moment.
We need to be able to set Allowed Filetypes from a control panel. Right now it is hard-coded. I had to hack files to add docx, zip, gzip, etc.
Allow hooks for virus scanning.
I agree with the idea of changing the folder from /images/stories/ to something else. It is confusing to have /images/ writeable but people don't really know what to put there. Perhaps /attachments (graphics and other items embedded in articles, saved into folders by article # -- can be used in multiple articles thru linking**), /documents (PDF, etc. which are not embedded but linked, not sorted by article ID), /sitegraphics (used by templates, site banners, etc.), etc.
I do understand that some add-ons like the excellent Joomla Content Editor have taken the initiative and allow the Site Admin to create folders inside /images/stories/ and grant people access to those folders. This will have to coordinate with ACL coming in Joomla 1.6. Do we create author shared folders, or do we create per-article folders and if the author has access to edit an article, then they have access to edit the associated attachments folder?
** If you delete an article which has attached graphics linked to from another article, then we need some code here, potentially tricky, failure code. If we are deleting article # 279, then we can't just delete /images/attachments/279/ folder if there are other articles using those graphics. Complex batch solution:
At the very least, we should get a prompt when we delete an article with linked attachments suggesting that we should "Keep attachments related to this article as they are used in other articles?" and then let people manage their own attachments.
We need to be able to set Allowed Filetypes from a control panel. Right now it is hard-coded. I had to hack files to add docx, zip, gzip, etc.
Allow hooks for virus scanning.
I agree with the idea of changing the folder from /images/stories/ to something else. It is confusing to have /images/ writeable but people don't really know what to put there. Perhaps /attachments (graphics and other items embedded in articles, saved into folders by article # -- can be used in multiple articles thru linking**), /documents (PDF, etc. which are not embedded but linked, not sorted by article ID), /sitegraphics (used by templates, site banners, etc.), etc.
I do understand that some add-ons like the excellent Joomla Content Editor have taken the initiative and allow the Site Admin to create folders inside /images/stories/ and grant people access to those folders. This will have to coordinate with ACL coming in Joomla 1.6. Do we create author shared folders, or do we create per-article folders and if the author has access to edit an article, then they have access to edit the associated attachments folder?
** If you delete an article which has attached graphics linked to from another article, then we need some code here, potentially tricky, failure code. If we are deleting article # 279, then we can't just delete /images/attachments/279/ folder if there are other articles using those graphics. Complex batch solution:
- Query database for first article (i.e. ID #102) that links to that graphic
- Copy graphic to /images/attachments/102/
- Find and Replace all references to /images/attachments/279/ to /images/attachments/102/
At the very least, we should get a prompt when we delete an article with linked attachments suggesting that we should "Keep attachments related to this article as they are used in other articles?" and then let people manage their own attachments.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sat Nov 29, 2008 3:32 pm
Re: [33]Media Manager improvements
Thanks for explaining about the ownership. I've overwritten the files in admin/components/com_media but it doesn't seem to work
Signature Rules: http://forum.joomla.org/viewtopic.php?t=65
- e-motiv
- Joomla! Enthusiast
- Posts: 168
- Joined: Sun May 06, 2007 12:33 pm
- Contact:
Re: [33]Media Manager improvements
I don't know if this topic is still going on or continued somewhere else or it has already been integrated in some alpha. If so, please point my pecker, if not:
I wonder if it's not advised to include some basic image handling in the base joomla classes (and not in the media component).
Why?
Because, for example image resizing, is something that is not only used in the "media management", but also in a lot of content. Content (with thumbs and other uses of smaller images) such as blog lists, articles lists, database lists, news, galleries, etc..
I, for one, know a lot of extensions that write their own image resizing php (or don't write it out of lack of time; e.g. some requests I read on forums from users to extension writers).
And as a tip: Maybe we can program it like the database class (mysqli, mysql etc..) so that we have the same function names, but depending on the user's preference a custom library GD2, Imagemick,.. or a library-less code (Joomla's own?) can be used?
(I guess Hackwar kind of started to code it that way a bit, then left only is my first idea above: some of it in the main joomla library.
I wonder if it's not advised to include some basic image handling in the base joomla classes (and not in the media component).
Why?
Because, for example image resizing, is something that is not only used in the "media management", but also in a lot of content. Content (with thumbs and other uses of smaller images) such as blog lists, articles lists, database lists, news, galleries, etc..
I, for one, know a lot of extensions that write their own image resizing php (or don't write it out of lack of time; e.g. some requests I read on forums from users to extension writers).
And as a tip: Maybe we can program it like the database class (mysqli, mysql etc..) so that we have the same function names, but depending on the user's preference a custom library GD2, Imagemick,.. or a library-less code (Joomla's own?) can be used?
(I guess Hackwar kind of started to code it that way a bit, then left only is my first idea above: some of it in the main joomla library.
http://www.e-motiv.net Professional web development <== e-motiv ==> Spin off web projects http://attic.e-motiv.net
-
- Joomla! Apprentice
- Posts: 16
- Joined: Sun Jan 04, 2009 7:25 am
Re: [33]Media Manager improvements
[quote="e-builds"]
I wonder if it's not advised to include some basic image handling in the base joomla classes (and not in the media component).
Great idea!
Several extensions add all sorts of layers of redundancy with their favorite image resizing tool.
Some use http://trac.gxdlabs.com/projects/phpthumb or others.
I've probably got 5-6 directories containing classes that do the same thing.
Unnecessary bloat!
I wonder if it's not advised to include some basic image handling in the base joomla classes (and not in the media component).
Great idea!
Several extensions add all sorts of layers of redundancy with their favorite image resizing tool.
Some use http://trac.gxdlabs.com/projects/phpthumb or others.
I've probably got 5-6 directories containing classes that do the same thing.
Unnecessary bloat!
- e-motiv
- Joomla! Enthusiast
- Posts: 168
- Joined: Sun May 06, 2007 12:33 pm
- Contact:
Re: [33]Media Manager improvements
Check or vote for this: FEATURE REQUEST (+ code) - Cached Thumbsnetstepinc wrote:Great idea!e-builds wrote: I wonder if it's not advised to include some basic image handling in the base joomla classes (and not in the media component).
Several extensions add all sorts of layers of redundancy with their favorite image resizing tool.
Some use http://trac.gxdlabs.com/projects/phpthumb or others.
I've probably got 5-6 directories containing classes that do the same thing.
Unnecessary bloat!
http://www.e-motiv.net Professional web development <== e-motiv ==> Spin off web projects http://attic.e-motiv.net
Advertisement