Hi, and 1st of all thanks for the great tools!
I have weird problem when trying to convert .png to .jpg
.png has 1536 x 2259 resolution
.jpg has 1190x1750 resolution
Its a comic strip that im trying to get in one .jpg file so i can create a pdf for my kid to read with tablet.
When i convert with
convert 1.jpg ( -transparent white 2.png ) -composite -quality 100 new.jpg result is this: http://i43.tinypic.com/169kn01.jpg
How i can get that resized / converted that the text would fit right place at those bubbles?
Sorry if this has been here for over and over again but couldnt find anything that would solve this with search.
----
Source files:
http://nordishavet.net/temp/problem/1.jpg
http://nordishavet.net/temp/problem/1.png
Convert png over jpg weird problem. - SOLVED!!
Convert png over jpg weird problem. - SOLVED!!
Last edited by Cutee on 2013-10-08T12:29:16-07:00, edited 2 times in total.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert png over jpg weird problem.
"-transparent white" should be after the image has been read, not before.
If you can provide both the source files, someone might work out a command that does the job.
If you can provide both the source files, someone might work out a command that does the job.
snibgo's IM pages: im.snibgo.com
Re: Convert png over jpg weird problem.
snibgo wrote:"-transparent white" should be after the image has been read, not before.
If you can provide both the source files, someone might work out a command that does the job.
Source files added to post.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert png over jpg weird problem.
Disregard. I did not see you had added the images above.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert png over jpg weird problem.
try this
unix syntax
convert 1.jpg \( 1.png -resize 1190x1750 \) -compose over -composite show:
windows syntax
convert 1.jpg ( 1.png -resize 1190x1750 ) -compose over -composite show:
unix syntax
convert 1.jpg \( 1.png -resize 1190x1750 \) -compose over -composite show:
windows syntax
convert 1.jpg ( 1.png -resize 1190x1750 ) -compose over -composite show:
Re: Convert png over jpg weird problem.
Nice that worked! tho it give some weird error? or so on it but it crated a .jpg with those on it! THANKS!fmw42 wrote:try this
unix syntax
convert 1.jpg \( 1.png -resize 1190x1750 \) -compose over -composite show:
windows syntax
convert 1.jpg ( 1.png -resize 1190x1750 ) -compose over -composite show:
"error" was:
convert 1.jpg ( 1.png -resize 1190x1750 ) -compose over -composite show: 666.jpg convert.exe: no decode delegate for this image format `' @ error/constitute.c/ReadImage/552.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert png over jpg weird problem.
"show:" doesn't work on Windows. Just use something like:
... then type "out.png" to view the result.
Code: Select all
convert 1.jpg ( 1.png -resize 1190x1750 ) -compose over -composite out.png
snibgo's IM pages: im.snibgo.com
Re: Convert png over jpg weird problem.
OK thanks! that was it .. damn i feel stupid with these machines and software so thanks once more for your patience.snibgo wrote:"show:" doesn't work on Windows. Just use something like:... then type "out.png" to view the result.Code: Select all
convert 1.jpg ( 1.png -resize 1190x1750 ) -compose over -composite out.png
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert png over jpg weird problem.
sorry, I forgot to replace the show with a real output image.