VectorLinux
July 28, 2014, 02:14:43 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2] 3
  Print  
Author Topic: Bootsplash Theme Creator program  (Read 14716 times)
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #15 on: May 25, 2009, 07:17:21 pm »

I think "convert" is the one I need. It seems to be working. I don't think it will be too much trouble to integrate it into the script. Thanks again!
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #16 on: May 25, 2009, 07:20:51 pm »

OK, just made this bash script.
Place it in a directory with only one picture and it will resize and name each of the required bootsplash's, when executed.

#!/bin/bash
cp ./*JPG original.jpg
cp ./*jpg original.jpg
convert original.jpg -resample 72 -resize 1280x1024\! bootsplash-1280x1024.jpg
convert original.jpg -resample 72 -resize 1024x768\! bootsplash-1024x768.jpg
convert original.jpg -resample 72 -resize 800x600\! bootsplash-800x600.jpg
exit

I just saw your post.  I'll let you take it from here.
« Last Edit: May 25, 2009, 07:26:14 pm by stretchedthin » Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #17 on: May 26, 2009, 05:26:07 am »

What does "-resample" do?
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #18 on: May 26, 2009, 07:24:42 am »

-resample changes the pixel per inch.  The bootsplashes that worked for me were at 72 pixels per inch.  This could be played with Uelsk8s suggested in this thread that 96 pixels per inch worked as well.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #19 on: May 26, 2009, 11:48:24 am »

Well, I tried "-resample 72", "-resample 96", and no resample at all but it still didn't work when I rebooted. Does the framebuffer console/normal console stuff in lilo.conf have to be set a certain way?
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #20 on: May 26, 2009, 12:33:25 pm »

I think the picture may still be to big. (In kilobytes not resolution)  What is the size in kb's of the picture that will not display?
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #21 on: May 26, 2009, 02:18:59 pm »

The picture is 35.2 kb in size. I think I did have the bootsplash thing in lilo set wrong so I fixed that and rebooted. The bootsplash came up, the progress bar started going across, the screen flickered, and it froze. It wouldn't continue booting. I had to boot my computer with the VL installation cd. Is the problem the size of the picture? (kb)
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #22 on: May 26, 2009, 03:59:55 pm »

Hi Daniel;

Here is a short screencast that shows the method that has been successful for me so far.
http://www.opensourcebistro.com/Tutorial/VL60/16.SystemAdmin/vasmcc/utilities/vlbsplash-switch/bootsplash.htm

This really minimizes the need to use the gimp.  Sometimes you don't have to use Gimp at all, but sometimes you do.  That's where I'm just guessing as to what the problem is still.
« Last Edit: May 26, 2009, 07:54:57 pm by stretchedthin » Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Masta
Global Moderator
Vectorian
*****
Posts: 725



« Reply #23 on: May 26, 2009, 07:37:51 pm »

The picture is 35.2 kb in size. I think I did have the bootsplash thing in lilo set wrong so I fixed that and rebooted. The bootsplash came up, the progress bar started going across, the screen flickered, and it froze. It wouldn't continue booting. I had to boot my computer with the VL installation cd. Is the problem the size of the picture? (kb)

No it's not the size.  Try resetting back to a known to work theme, reboot, then switch to your theme again, reboot.

Sometimes, it seems, that it doesn't take the switch very well, and the init gets a little corrupt. Usually the above will do the trick.

Logged
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #24 on: May 29, 2009, 08:19:50 am »

The picture is 35.2 kb in size. I think I did have the bootsplash thing in lilo set wrong so I fixed that and rebooted. The bootsplash came up, the progress bar started going across, the screen flickered, and it froze. It wouldn't continue booting. I had to boot my computer with the VL installation cd. Is the problem the size of the picture? (kb)

No it's not the size.  Try resetting back to a known to work theme, reboot, then switch to your theme again, reboot.

Sometimes, it seems, that it doesn't take the switch very well, and the init gets a little corrupt. Usually the above will do the trick.



Well, I tried switching to a theme that was already there (that I didn't make) and rebooting. It started coming up but just like with my themes, it stopped and froze at "Performing Coldplugging". I think my hardware might not work with the bootsplash or something.

Anyway, Bootsplash Theme Creator version 1.5 is ready to be tested. It incorporates image resizing now so that it only needs a single picture instead of 3 different resolutions of one. It also has progress dialogs and at the end, it asks if you want to run the VL Bootsplash Switcher to switch to your newly made theme. Please test!
« Last Edit: June 04, 2009, 08:17:05 am by Daniel » Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #25 on: May 29, 2009, 08:48:00 am »

Hi Daniel;

I will test and get back to you shortly.

In the mean time, try and run vliloconf as root in the terminal.
This will reset the lilo bootsplash settings and may help you out.  I'm not sure how it's worded but you want to choose
either high res or extra high res.

See if that helps any.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #26 on: May 29, 2009, 10:31:02 am »

Before I get started on the testing,  I just wanted to say great job.  Really appreciate the work you are putting into this.
This is going to be a great little app when you are done.

Started with an image choosen from google images.
cloudsA_1289x1024.jpg
Image size 119.2 KB, 72pi/inch, had a Subsampling of 1x1,1x1,1x1 (best quality)
Using the image exactly as is (no editing with gimp)
It just did not work.

Same image edited with gimp to change Subsampling to 2x2, 1x1, 1x1 (smallest file)
plus unchecked "Optimize"

This time it worked flawlessley.   So right now the program is fine just as it is for pictures
which are already subsampled to 2x2,1x1,1x1.

It does require an extra step for pictures which are set to the best quality subsample.

I found another -option that shoud add this function to your project and added into these lines...

convert $pic -resample 72 -sampling-factor 2x2 -resize 1024x768\! /etc/bootsplash/themes/$name/images/bootsplash-1024x768.jpg

convert $pic -resample 72 -sampling-factor 2x2 -resize 1280x1024\! /etc/bootsplash/themes/$name/images/bootsplash-1280x1024.jpg

convert $pic -resample 72 -sampling-factor 2x2 -resize 800x600\! /etc/bootsplash/themes/$name/images/bootsplash-800x600.jpg

#Copying and resizing the silent .jpg files.

zenity --progress --pulsate --title="working..." --text="Copying and resizing silent .jpg..." --percentage=60 --timeout 1

convert $pic -resample 72 -sampling-factor 2x2 -resize 1024x768\! /etc/bootsplash/themes/$name/images/silent-1024x768.jpg

convert $pic -resample 72 -sampling-factor 2x2 -resize 1280x1024\! /etc/bootsplash/themes/$name/images/silent-1280x1024.jpg

convert $pic -resample 72 -sampling-factor 2x2 -resize 800x600\! /etc/bootsplash/themes/$name/images/silent-800x600.jpg


I was then able to use the picture that previously failed, directly in your application (with out any editing by gimp).
This time it worked flawlessly.   However, it will still need to be tested.
« Last Edit: May 29, 2009, 10:47:54 am by stretchedthin » Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #27 on: May 29, 2009, 02:26:27 pm »

Ok, here is v1.5 with the "-sampling-factor 2x2" fix. Also, this is the 3rd posting of a version of my program, I thought I should make all the attachments the same so would I be able to modify the post and do that?
« Last Edit: June 04, 2009, 08:17:39 am by Daniel » Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #28 on: May 29, 2009, 02:37:17 pm »

Ok, here is v1.5 with the "-sampling-factor 2x2" fix. Also, this is the 3rd posting of a version of my program, I thought I should make all the attachments the same so would I be able to modify the post and do that?

Yes you should be able to use the 'Modify' option to change each of your postings.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Daniel
Packager
Vectorian
****
Posts: 704


WWW
« Reply #29 on: May 29, 2009, 06:34:57 pm »

Ok, done. All the attachments are the same now.
Logged

The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!