Search found 12163 matches

by snibgo
2010-02-15T15:23:28-07:00
Forum: Users
Topic: PNG2TIFF width transparent background
Replies: 10
Views: 27914

Re: PNG2TIFF width transparent background

I don't understand. I want to convert a PNG with a transparent background to a tiff with also a transparent background. This will do that: convert test.png test.tif The generated tiff have an alpha channel, i don't think i want that You can't have a transparent background without an alpha channel (a...
by snibgo
2010-02-13T00:21:06-07:00
Forum: Users
Topic: repairing jpegs
Replies: 23
Views: 80071

Re: repairing jpegs

Does Photoshop report the file is a JPEG?

If the file is a badly-written jpeg, the solution may be to open it and re-save it in a more tolerant program (PS or Gimp). If you need to do this often, you could write a script.
by snibgo
2010-02-12T05:32:44-07:00
Forum: Users
Topic: Weird Adobe JPEG CMYK images?
Replies: 3
Views: 10083

Re: Weird Adobe JPEG CMYK images?

Pleasure. Of course, blindly stripping out the profile does change the colour slightly.
by snibgo
2010-02-12T04:38:29-07:00
Forum: Users
Topic: Weird Adobe JPEG CMYK images?
Replies: 3
Views: 10083

Re: Weird Adobe JPEG CMYK images?

-strip will remove profiles etc:

Code: Select all

convert 710006.jpg -strip -quality 50 x.jpg
Adjust quality parameter to suit.
by snibgo
2010-02-11T22:00:36-07:00
Forum: Users
Topic: converting jpeg files to pdf
Replies: 6
Views: 16025

Re: converting jpeg files to pdf

Don't forget that IM will try to read in all the JPEGS and decompress them before doing the processing. How many pixels does each one have? You might look at the problem differently. You don't really want to ocnvert the images. Instead, you want to include them (unconverted) in a PDF documnent. For ...
by snibgo
2010-02-11T21:31:53-07:00
Forum: Users
Topic: converting jpeg files to pdf
Replies: 6
Views: 16025

Re: converting jpeg files to pdf

I know nothing about PDF, but you might try:

Code: Select all

convert *jpg -compress JPEG my.pdf
ls -l my.pdf
convert *jpg -compress JPEG -quality 50 my.pdf
ls -l my.pdf
by snibgo
2010-02-11T20:19:56-07:00
Forum: Users
Topic: How to create round corner and drop shadow by convert?
Replies: 27
Views: 65704

Re: How to create round corner and drop shadow by convert?

If my brain was in gear, I would have seen that the four Windows lines: convert xc: -format "set wwm1=%%[fx:%ww%-1]" info:%TEMP%\getsize.bat call %TEMP%\getsize.bat convert xc: -format "set hhm1=%%[fx:%hh%-1]" info:%TEMP%\getsize.bat call %TEMP%\getsize.bat can be simplified to: ...
by snibgo
2010-02-11T20:03:23-07:00
Forum: Users
Topic: cr2 to png problem
Replies: 5
Views: 15103

Re: cr2 to png problem

Does gthumb make thumbnails, ie images with smaller dimensions?

Png doesn't compress photos well. A common program "pngcrush" might shrink them a little. But if you want smaller filesizes, try jpg.
by snibgo
2010-02-11T19:49:24-07:00
Forum: Users
Topic: How to create round corner and drop shadow by convert?
Replies: 27
Views: 65704

Re: How to create round corner and drop shadow by convert?

Yes, I think that analysis is about right. The input image might be 100 pixels wide, so the roundrectangle would start at coordinate 0,0 and end at 99,99. So we need the "minus 1". I don't know why Fred (fmw42) started at 1,1. Starting at 0,0 seems fine. Here are my comments on your analys...
by snibgo
2010-02-10T09:56:11-07:00
Forum: Users
Topic: Cut the sides - or Zooming
Replies: 18
Views: 44060

Re: Cut the sides - or Zooming

The "cut" command (see any Unix documentation) extracts data from a file, in this case data that is delimited by "x", taking the first or second fields. I'm giving you an alternative to the "cut" command, by using convert to write a Windows batch file that sets two envi...
by snibgo
2010-02-10T09:20:23-07:00
Forum: Users
Topic: Convert CMYK PDF to JPG creates corrupt image.
Replies: 10
Views: 26128

Re: Convert CMYK PDF to JPG creates corrupt image.

You might install a versions that are less than four year old, and see if you still have the problem.
by snibgo
2010-02-10T09:11:10-07:00
Forum: Users
Topic: Cut the sides - or Zooming
Replies: 18
Views: 44060

Re: Cut the sides - or Zooming

Translating from Unix to Windows isn't trivial.

"Cut" is a Unix command. For Windows, you can do something like:

Code: Select all

convert %infile% -format "set ww=%%w\nset hh=%%h" info:%TEMP%\getsize.bat

call %TEMP%\getsize.bat
by snibgo
2010-02-09T01:07:53-07:00
Forum: Users
Topic: I've had no luck in the Perl Magic Forum.... Any thoughts?
Replies: 6
Views: 16538

Re: I've had no luck in the Perl Magic Forum.... Any though

I don't speak perl, so can't help you there. You might try the equivalent shell commands to see if they work. That would narrow down the problem. You might try updating IM. Your script seems to flood-fill the white border with transparent. But his shirt at the border is white, so that would cause pr...
by snibgo
2010-02-08T11:19:19-07:00
Forum: Users
Topic: I've had no luck in the Perl Magic Forum.... Any thoughts?
Replies: 6
Views: 16538

Re: I've had no luck in the Perl Magic Forum.... Any though

The description makes your script sound very complex. Resizing down, then up again? I suggest you post the script, with an original tif that sometimes goes wrong, and the intermediate files. Your platform and IM version may be relevant. Here is how I would do it (without touching density, which isn'...
by snibgo
2010-02-08T05:50:38-07:00
Forum: Users
Topic: Convert or don't convert (solved)
Replies: 4
Views: 13611

Re: Convert or don't convert

For "caret" in the above, read "greater than" (>).

Code: Select all

convert input.jpg -resize "500x500>" output.png
That will teach me not to post in a hurry.