GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any SmartThumbs gurus around? (https://gfy.com/showthread.php?t=989708)

grannytgp 09-29-2010 12:23 AM

Any SmartThumbs gurus around?
 
Hello all,

Have a couple minor things I'm trying to figure out with SmartThumbs, and looking for someone who I could fire a few questions at over ICQ. As good as ST's support is, it does take them a few days at a time to reply back to support requests on their forum. My ADD and general lack of patience has me looking for a faster response :)

Any help is appreciated!

ICQ - 14592420

boneless 09-29-2010 12:27 AM

post the question and ill see if i can help

grannytgp 09-29-2010 12:38 AM

Quote:

Originally Posted by boneless (Post 17550652)
post the question and ill see if i can help

One of the things I've been trying to figure out is how to make ST output thumbs with a 1px black border. I can't seem to find a simple on/off setting for this anywhere in the admin. By default thumbs are created with no border. I'm using Imagemagick as my image processor.

If you go into Settings>Groups and then open up advanced edit properties on any group, I do see that you can manipulate the Imagemagick command line. Default command is:
Code:

-filter Blackman -modulate 110,102,100 -sharpen 1x1 -enhance
To create a 1px border, and still maintain the output size for thumbs you would have to create the border on the inside area of the thumb (otherwise the image would be 1px bigger on each edge). The stroke command would work, and just in testing I've found that you can use mogrify as well:
Code:

mogrify -shave 1x1 -bordercolor black -border 1 -format jpg *.jpg
This mogrify command will process all *.jpg files in a given directory. Not entirely sure how to incorporate it into the default Imagemagick command for ST. Or for that matter, if I even have to... because this may be a setting somewhere in the admin that I'm just not seeing.

Romario VIP 09-29-2010 01:48 AM

You should post those on the support forum, it works like a charm, Goodwill is always helpful !

boneless 09-29-2010 01:50 AM

-filter Blackman -modulate 110,102,100 -sharpen 1x1 -enhance -shave 1x1 -bordercolor black -border 1

try this firstly on one thumbnail in smart thumbs (remember to HANDCROP it if you prescanned the images)

post the results here. Im out for some meds, will report back in like 90 minutes.

grannytgp 09-29-2010 02:27 AM

Quote:

Originally Posted by boneless (Post 17550734)
-filter Blackman -modulate 110,102,100 -sharpen 1x1 -enhance -shave 1x1 -bordercolor black -border 1

try this firstly on one thumbnail in smart thumbs (remember to HANDCROP it if you prescanned the images)

post the results here. Im out for some meds, will report back in like 90 minutes.

Modified the Imagemagick command line (from within the group settings - advanced) within SmartThumbs, then imported using the "Scan One File" option. I manually cropped a thumb from the prescanned images, and the resulting thumb DOES have the 1px black border around it. Copied image location and viewed it standalone in a browser just to verify, as SmartThumbs does seem to use black table cell borders quite a bit. Just wanted to make sure the thumb itself had the border, and not the table.

Ok, so now this brings up a couple of things.

1. Is this even really the correct way to handle thumbs with borders?
2. I have a ST database with several thousand galleries, although the site isn't live yet. Ideally I would like all thumbs to have borders... is there any "simple" way to have SmartThumbs re-thumbnail all my existing thumbs so that borders are added?

I suppose I could SSH into the server, and run the Imagemagick command at the top level of /st/thumbs and have it recursively go through each subdirectory. This way it would add borders to all existing images, and filenames would still be intact. Of course I would create a copy of the entire /thumbs directory first. Then with the modified Imagemagick command in place, any new galleries that I add would have the 1px border automatically.

Thoughts?

grannytgp 09-29-2010 02:30 AM

Quote:

Originally Posted by Romario VIP (Post 17550729)
You should post those on the support forum, it works like a charm, Goodwill is always helpful !

I did post this on this support forum Romario. I've just been looking to fasttrack this "fix" into my SmartThumbs install, and figured there would be someone on GFY that's already done the same thing. I'm sure Bepe will get back to me soon enough, I just have little patience sometimes :)

beta-tester 09-29-2010 02:42 AM

why not just use normal HTML/CSS border on your page? You can control its behavior easily plus you won't have to modify the images...

grannytgp 09-29-2010 03:15 AM

Quote:

Originally Posted by beta-tester (Post 17550790)
why not just use normal HTML/CSS border on your page? You can control its behavior easily plus you won't have to modify the images...

I originally did try to use regular HTML cell borders, but because of cell spacing the borders came out looking too wide. However, your post made me re-think this and tweak the design a little bit using just CSS borders around the images... and this does do the trick perfectly.

Just a simple:
Code:

border-style:solid;
border-color: black;
border-width:1px;

Thanks for the help anyway boneless, at least I learned a little bit more about tweaking SmartThumbs settings :thumbsup

boneless 09-29-2010 04:09 AM

Quote:

Originally Posted by grannytgp (Post 17550847)
Thanks for the help anyway boneless, at least I learned a little bit more about tweaking SmartThumbs settings :thumbsup

NP mate i had the html one as the second option but as you were determined to get it to work in ST i figured to give you the im code ;)


All times are GMT -7. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123