Search found 41 matches
- 2015-02-18T12:51:27-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Yeah - PNG's caused me no end of headaches with the sheer size of them If your site needs the white padding, why are you trying to remove it? I add the white bit. But I also want to create a version of the image, which can be shared. Basically a "not squared" version. There are some places (such as ...
- 2015-02-18T12:15:22-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Thanks - I'll give the trim a go
These images are really for people sharing on social media. The images we use on our site, and fixed squares - thus the white background, as you can't have transparency in jpg's (right PITA!)
Thanks again everyone
These images are really for people sharing on social media. The images we use on our site, and fixed squares - thus the white background, as you can't have transparency in jpg's (right PITA!)
Thanks again everyone
- 2015-02-18T11:47:09-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Ah - how weird! (about it not being pure white)
Thanks though - this worked:
Now to just make my code do this with every image =)
Thanks everyone for the quick help!
Cheers
Andy
Thanks though - this worked:
Code: Select all
convert test4.jpg -fuzz 30% -trim +repage test7.jpg
Now to just make my code do this with every image =)
Thanks everyone for the quick help!
Cheers
Andy
- 2015-02-18T11:37:47-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Hi, Thanks for the reply. I'm using lots of different images, and those are the 2 examples I'm playing with :) (one has white to the edge, the other does not) I just tried: convert test4.jpg -bordercolor white -border 1 -fuzz 30% -trim +repage test6.jpg ..but I still get: https://steampunkjunkies ...
- 2015-02-18T11:28:56-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Hi,
Sorry, not sure what you mean? I tried it - and it looks fine to me:
TIA
Andy
Sorry, not sure what you mean? I tried it - and it looks fine to me:
TIA
Andy
- 2015-02-18T06:30:56-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Thanks for the reply. It comes up as pure ffffff in GIMP, so pretty sure its white I tried it with the "fuzz" option, but no difference I'm afraid
TIA
Andy
TIA
Andy
- 2015-02-18T05:45:42-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Re: Crop out white part of image?
Hi Bonzo, Thanks for the reply. I gave this a go: convert test3.jpg -bordercolor White -border 10x10 -trim test4.jpg However, it didn't seem to work :/ https://steampunkjunkies.net/daily/test4.jpg I'm on ImageMagick 6.8.6-8 - would that make a difference? For what its worth - the border part seems ...
- 2015-02-18T03:47:00-07:00
- Forum: Users
- Topic: Crop out white part of image?
- Replies: 16
- Views: 11561
Crop out white part of image?
Hi, I'm trying to "crop" the white part out of images, like so: https://steampunkjunkies.net/daily/test4.jpg The white part won't always be the same size wise / position (for example, some may have a little to the side, and a lot at the top/bottom - whereas others may not have any) Any suggestions ...
- 2014-02-27T02:16:16-07:00
- Forum: Users
- Topic: Convert image to a given size, BUT dont crop
- Replies: 10
- Views: 8478
Re: Convert image to a given size, BUT dont crop
Yeah, I'm aware that PNG doesnt support transparency - thus the black part
I ended up getting this working for me:
convert "$path/$filename" -resize 800x800 -size 800x800 xc:white +swap -compose over -composite "$path/$filename_new"
Thanks for the reply though
I ended up getting this working for me:
convert "$path/$filename" -resize 800x800 -size 800x800 xc:white +swap -compose over -composite "$path/$filename_new"
Thanks for the reply though
- 2014-02-26T12:09:48-07:00
- Forum: Users
- Topic: Convert image to a given size, BUT dont crop
- Replies: 10
- Views: 8478
Re: Convert image to a given size, BUT dont crop
Me again :) After doing conversions to PNG, I've decided that actually JPG's would be better for my site, as PNG's are stupidly large (and for just photos, jpg would be more suited) I've got it all going now - but I'm having the normal issue with the PNG showing black where the transparency. I know ...
- 2014-02-17T13:14:22-07:00
- Forum: Users
- Topic: Convert image to a given size, BUT dont crop
- Replies: 10
- Views: 8478
Re: Convert image to a given size, BUT dont crop
You beauty - the first one worked like a charm
Thanks!
Andy
Thanks!
Andy
- 2014-02-17T11:29:21-07:00
- Forum: Users
- Topic: Convert image to a given size, BUT dont crop
- Replies: 10
- Views: 8478
Re: Convert image to a given size, BUT dont crop
Hi,
The example image can be found here:
http://steampunkjunkies.net/uploads/ori ... Adolv5.jpg
the blank300.gif is just a transparent gif, thats 600px wide (bit mis-leading, but it was from when we were doing it as a 300 )
TIA
The example image can be found here:
http://steampunkjunkies.net/uploads/ori ... Adolv5.jpg
the blank300.gif is just a transparent gif, thats 600px wide (bit mis-leading, but it was from when we were doing it as a 300 )
TIA
- 2014-02-17T11:18:16-07:00
- Forum: Users
- Topic: Convert image to a given size, BUT dont crop
- Replies: 10
- Views: 8478
Re: Convert image to a given size, BUT dont crop
Hi, Sorry, that was out of my perl script. You have to double escape a \, otherwise it would be trying to escape the ( (and not be run as part of the command) For the 300x300 but.. that was a typo =) I just need a 600x600, and then I'll be able to shrink it down to whatever I need (proportionatly ...
- 2014-02-17T11:05:40-07:00
- Forum: Users
- Topic: Convert image to a given size, BUT dont crop
- Replies: 10
- Views: 8478
Convert image to a given size, BUT dont crop
Hi, I'm trying to get an image to shrink to a given size (300x300). The command I normally use is: convert "/var/home/steveraf/steampunkjunkiesdev.net/www/new/img/blank300.gif" \\\( -define jpeg:size=600x600 "$path_orig" -thumbnail 600x600 \\\) -gravity center -composite "$path_orig" However, that ...
- 2013-01-30T14:45:07-07:00
- Forum: Users
- Topic: How to "center center" an image
- Replies: 14
- Views: 16315
Re: How to "center center" an image
Hi, Wahooooo we got there! This works: convert blank300.gif \( -define jpeg:size=300x300 7UFFBJ7XVryG2hEljnQH247FObz9Kl.jpg -thumbnail 300x300 \) -gravity center -composite test10-7UFFBJ7XVryG2hEljnQH247FObz9Kl.jpg Thank you everyone for your help 8) (you can see these nice new images on the ...