-
☆ A M B ☆
- 1,031 Posts
Has the ManagerManager jQuery inside the editing iframe really any issues with the Quickmanager jQuery outside of the editing iframe?
I created a new ManagerManager widget showimagetvthumbs.php would be nice to get added.
As showimagetvs.php grabs the FULL picture (slow)
https://forums.modx.com/thread/45206/managermanager-mm-widget-showimagetvs-not-working-in-modx-evo?page=3
This makes use of the (AWESOME) KCFinder thumbnails already created.
Quote from: pathologic at Feb 06, 2014, 05:37 AMIt seems to be redundant to create additional widget. mm_widget_showimagetvs already has thumbnailerUrl parameter, so we can use it to make additional image processing. https://github.com/Pathologic/managerResize - here I've made a proof of idea with phpthumb. It's very easy to modify it to use KCFinder thumbnails. But also keep in mind, that KCFinder doesn't make thumbs if original image size is less than thumb size.
1. I was having problem with PHPThumb and I really don't like to use it. Specially not in the manager.
// I even use the KCFinder thumbnails in the front-end.
return str_replace('assets/images', 'assets/.thumbs/images', $output);
People on the internet says:
You're better off always generating thumbnail versions of images on upload/creation instead of trying to serve them through php scripts on-demand.
http://stackoverflow.com/questions/9346298/what-is-the-best-to-use-phpthumb
2. The widget file and folder adds 3 kB but can be made smaller.
3. In the mm_rules one can use PHP to turn on/off previews based on resoure id (etc.) OR use the original widget for such odd pictures. But I did fix it for my own needs:
https://forums.modx.com/thread/88252/modx-evolution-1-0-13-rc2---need-help-with-tests?page=8#dis-post-489573
This is currently NOT possible in MODX EVO: http://snag.gy/F2y0B.jpg
Pics are all 1000 pixels in size and as I have 3 tabs it would kill the server using PHPThumb.
Give me
Creative Freedom to avoid the relic - that is PHPThumb!
» showimagetvthumbs.txt (rename to .php)
[ed. note: mrhaw last edited this post 12 years, 7 months ago.]
Hello,
I have one question, did u fix a phpthumb + evogallery bug?
For example in MODX Evo 1.0.12 when i use great EvoGallery addos like this:
template: gallery
[[EvoGallery? &docId=`[*id*]` &itemTpl=`img_gal`]]
chunk: img_gal
<img src="[[phpthumb? &input=`[+img1+]` &options=`w=250,h=140,zc=C`]]" alt="" />
It doesnt work.... phpthumb cant load img1 :/
-
☆ A M B ☆
- 276 Posts
It doesnt work.... phpthumb cant load img1 :/
img1 - not return url to image then it can't work
see the doc for EvoGallery how generic url in tpl
Quote from: pathologic at Feb 06, 2014, 10:23 AM
I simply wanted to say that mm_widget_showimagetvs allows to run external script to process image. And this script can call PHPThumb or do something else (str_replace, check image size and so on).
By the way, why don't you use MultiTV to manage galleries?
Yes, you are correct!
I have 4 options: Modify original widget, Write new widget (what I did), Write a $thumbnailerUrl file-script OR Install MultiTV. //On the linked project I assigned every picture it's own cached URL. I'm sure it could have been done using MultiTV as well.
The ultimate solution would probably be to add a variable to mm_widget_showimagetvs : $image [full|thumb] that gave people who are less impressed by phpThumb the option to opt out.
Thanks for all the good stuff, contributions and work that has been done.
Quote from: haki1986 at Feb 06, 2014, 11:17 AM
<img src="[[phpthumb? &input=`[+img1+]` &options=`w=250,h=140,zc=C`]]" alt="">
needs to be: zc=1
but it probably doesn't solve the problem, use: &input=`[+images_dir+][+filename+]`
[!EvoGallery? &docId=`[*id*]` &display=`images` &type=`simple-list` &tpl=`fotoboek-ul` &itemTpl=`fotoboek-li`!]
<li><a href="[+images_dir+][+filename+]" class="fancybox-thumbs" title="[+title+]" data-fancybox-group="thumb"><img class="roundedborder" src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=85`]]" alt="" /></a></li>
<ul>
[+items+]
</ul>
<div style="clear:both;"></div>
[ed. note: fourroses666 last edited this post 12 years, 7 months ago.]
Evolution user, I like the back-end speed and simplicity
