I just ran into the same problem. I solved it by editing a line near the bottom of the snippet code itself:
if (is_file($modx->config['base_path'].$mp_img)) {
// return '/'.$mp_img;
return $mp_img;
}
return include($miniphoto_path.'miniphoto.inc.php');
I don’t suppose this helps the first time it’s run, but at least every time after when it pulls the thumbnail from its cache it’ll be corrected.
-
- 87 Posts
Susan, you are a rockstar. Thank you so much. I could give you a million hugs.
-
- 87 Posts
I see what you mean about the first time now. It’s just displaying the no photo image instead of the one I uploaded. Is there anything I can do so that they both work? :\
-
- 10 Posts
Is anyone using this snippet on revolution? I found it incredibly useful and great for SEO, just wondering if there was a package available or any other services that work in the same way.
-
- 10 Posts
Anyone know of any other tools for image resizing for revolution?
-
- 7 Posts
Hi I using version 1,3 its great. thank you. I have searched for several day something like this snippet. And finally founded.
So I have question. I want to use watermarks.
I am using something like this:
<img src="[[MiniPhoto? &file=`[*spost_featured*]` &width=`340` &height=`290`]]" width="340" height="290" alt="" border="o" class="photo left" />
What should I add for watermarks. Please help me.
Thank you
Hi guys.
This is a great little snippet that I prefer to phpThumb, however it uses split() which is deprecated and blew up on me. whoops.
I fixed it and have modified it for MiniPhoto1.2 and Miniphoto1.3. They are attached. Hope it helps someone.
I'll second this recommendation; I used it for years and it always worked great. Excellent fix!