Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 05:07
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Latest Nathan Wallpaper zapping *.png's ? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Author Message
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 19 Mar 2013, 10:58    Post_subject:  Latest Nathan Wallpaper zapping *.png's ? [SOLVED]
Sub_title: Except Nathan had nothing to do with it!
 

Hello, all.

That's a new behavior in Wallpaper, eh? It never happened before.

In wary 5.5, the Nathan Wallpaper utility is now zapping *.png's, and of course, no good deed going unpunished, it also erases your current background. So you end up with the default light grey background, and 0 Kb for your favorite *.png.

I understand *.png's generally take more space than *.jpg's, but please, that's a decision for the user to make, not the developer. To whoever last fiddled with the Nathan Wallpaper script: make a public confession, and perhaps you'll be pardoned! Wink

Moral of this story is: find and use an older version of "Nathan Wallpaper", not the current one. Older versions don't have this bug.

BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Thu 21 Mar 2013, 17:46    Post_subject:  

I remember I had such occurrence once, too. I think it is code in
/usr/sbin/background_reshape . Will have to look for it . It might have something to do with file name with spaces or some used binary ie jpegtopnm pamcut pnmcut and their libraries.
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Fri 22 Mar 2013, 10:53    Post_subject:  

Hello, Karl.

I'm not advanced enough, unlike yourself, to edit the code. So I un-installed the 0.6 version and re-installed wallpaper_lupu-0.5.4.1.pet.

However thanks for the confirmation that I was not seeing things !!!

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Fri 22 Mar 2013, 17:48    Post_subject:  

I was the last one to modify Nathan's wallpaper setter.

It is default in Slacko and the default image is a PNG ! No problems reported. I wonder if this is a Wary specific bug?

NB: as far as I know, Slacko uses the same netpbm tools as Wary, this is responsible for the cropping in Barry's code to which Karl refers.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Sat 23 Mar 2013, 00:57    Post_subject:  

01micko wrote:
I was the last one to modify Nathan's wallpaper setter.

It is default in Slacko and the default image is a PNG ! No problems reported. I wonder if this is a Wary specific bug?

NB: as far as I know, Slacko uses the same netpbm tools as Wary, this is responsible for the cropping in Barry's code to which Karl refers.


Hi, 01micko.

Long time no see, eh? Smile I hope you are well.

As I said, I'm not expert enough to venture in the code -- and truly, I have other fish to fry. Wink

BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Mon 25 Mar 2013, 10:01    Post_subject:  

musher0,
Wary-5.5 seems not to have Nathan Wallpaper Setter installed by default.
It must be the wallpaper-setter by BK then, as I look into puppy_wary-5.5.sfs/usr/local/apps .

Will boot and check tomorrow or later today.
musher0 wrote:
and truly, I have other fish to fry. Wink
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Mon 25 Mar 2013, 12:27    Post_subject:  

Karl Godt wrote:
musher0,
Wary-5.5 seems not to have Nathan Wallpaper Setter installed by default.
It must be the wallpaper-setter by BK then, as I look into puppy_wary-5.5.sfs/usr/local/apps .

Will boot and check tomorrow or later today.
musher0 wrote:
and truly, I have other fish to fry. Wink


Hello, Karl.

Don't you like fish? It's Holy Week, a good Christian is supposed to be fasting! Wink

Oh, I know wary uses the rigid pwallpaper to set up the backdrop of the screen.

Some users might not know this: If a user wants to choose any picture located anywhere on the computer, (s)he is better off using the built-in background setter in ROX-Filer. See how-to illustrations below.

BFN.
ROX-as-background-changer.jpg
Description  To activate the background setting option, click Options in a ROX-filer panel, go to "compatibilities", and un-tick "Pass all clicks..." You can re-set it to normal after you've changed the backdrop.
jpg

 Download 
Filename  ROX-as-background-changer.jpg 
Filesize  54.48 KB 
Downloaded  200 Time(s) 
ROX-as-background-changer2.jpg
 Description   To actually change the backdrop this way, open any image folder, ri"ght click on background and click on "background image". A panel appears. Set the preferences, and slide your preferred image on it, and it's done.
 Filesize   33.69 KB
 Viewed   493 Time(s)

ROX-as-background-changer2.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Mon 25 Mar 2013, 14:17    Post_subject:  

musher01 : Where did you get the wallpaper-0.6[.x].pet from ?

I have found the blog of BK by using google : Nathan's Wallpaper Setter 0.6
that led here : Nathan Wallpaper Setter -update
and on ftp://ftp.nluug.nl/../pub/ibiblio/distributions/quirky/pet_packages-common/
there is a 0.6.1-1.pet plus a 0.5.6.pet .
/usr/local/bin/ppm shows two pets from the puppy-noarch repo in the Desktop part as
simple_wall-set-0.6-noarch
and
wallpaper-0.6.1-1
,
-noarch meaning no binaries but scripts and picts included .
Have dl the lupu-0.5.4.1.pet you mentioned and the three from Mik's thread,
diff -up them and there is not much of interest and apparently no binaries included,
probably a change from $IMAGE to $1 between 6.0 to 6.1 which might screw things if $1 gets passed to a function,

but have pet2tgz them all and tgz xzf them to diff them,
ran ./AppRun inside the 0.6.1- version directory and applied it on a pic dl from http://hubblesite.org/gallery/wallpaper/pr2010013a/640_wallpaper and it worked for me,
have no widescreen monitor though to test correctly.
There are some mismatches still for sometimes filename variables get doublequotes and sometimes not to act correctly with :SPACE: 's ; the default /usr/sbin/pwallpaper at least does not support spaces .

So there are few "Latest" wallpaper setters around, would be somehow cool if you could at least roughly remember where you got them from.

About fish : I don't hate fish, but seldom eat it. Fish can be smoked or put into vinegar, too, though that was not that was Jesus liked bound to that cross .. but Simon of Cyrene was told to bear the cross behind him, one gospels says .. maybe he stepped onto the purple cloth , they fell down and somehow suddenly there was some other guy dying for him ..
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 26 Mar 2013, 01:01    Post_subject:  

Hello, Karl.

Well, there is a problem with PPM, in that 1) ibiblio is unavailable because it has "moved permanently", and 2) the other dl sites have their recursive analysis de-activated.

I'll try to access the sites manually.

BFN.

musher0
PPM-recursive-deactivated-1.jpg
 Description   
 Filesize   61.65 KB
 Viewed   449 Time(s)

PPM-recursive-deactivated-1.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 26 Mar 2013, 01:16    Post_subject:  

Hello, again.

Sorry for bringing this up, but Your test might be inconclusive, since it is a jpg file.
http://imgsrc.hubblesite.org/hu/db/images/hs-2010-13-a-640_wallpaper.jpg

Have you tried with one or more *.png images ?

BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 26 Mar 2013, 01:22    Post_subject:  

Hi.

This with wallpaper 6.1 dl'd directly from ftp://mirror.aarnet.edu.au/pub/quirky/pet_packages-noarch/wallpaper-0.6.1-1.pet

I'll try to locate a 6.0 version and try again.

musher0
no-luck-with-png-wallpaper-6.1.jpg
 Description   
 Filesize   57.12 KB
 Viewed   453 Time(s)

no-luck-with-png-wallpaper-6.1.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 26 Mar 2013, 02:10    Post_subject:
Sub_title: powerful workaround
 

Hello again.

In the meantime, one can revert to wallpaper-0.5.x and use this powerful workaround :

Code:
#!/bin/sh
# ~/my-applications/bin/wlppr-lnks.sh
# musher0, March 26, 2013.
####
ln /usr/local/apps/Wallpaper /root/.config/rox.sourceforge.net/OpenWith/.image_jpeg/
ln /usr/local/apps/Wallpaper /root/.config/rox.sourceforge.net/OpenWith/.image_png/
### 30 ###


This will create a "wallpaper" link in the right-click menu under jpg and png images. With this, you can go to any picture directory, make the pictures the biggest possible, and right-click on a picture and make it a "wallpaper" choice.

With these little links, you see a nice picture in any picture directory and you have the ability to make it a backdrop. This is actually more intuitive than the current offering, in my opinion.

TWYL.

musher0
wlppr-lnks.sh.tar.gz
Description 
gz

 Download 
Filename  wlppr-lnks.sh.tar.gz 
Filesize  241 Bytes 
Downloaded  165 Time(s) 
wallpaper-0.5-workaround.jpg
 Description   
 Filesize   42 KB
 Viewed   441 Time(s)

wallpaper-0.5-workaround.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Tue 26 Mar 2013, 02:12    Post_subject:  

extracted the version 0.6.1-1.pet in a sandbox,
opened the .jpg in mtpaint and saved as .png and .gz9.png (without compression and with compressionlevel9) ,
ran ./AppRun and it worked for me,
also on the /usr/share/backgrounds/wary_stark.png .
No truncations detected.

Even in locale
Quote:
LANG=fr_CA.UTF-8
LC_CTYPE="fr_CA.UTF-8"
LC_NUMERIC="fr_CA.UTF-8"
LC_TIME="fr_CA.UTF-8"
LC_COLLATE="fr_CA.UTF-8"
LC_MONETARY="fr_CA.UTF-8"
LC_MESSAGES="fr_CA.UTF-8"
LC_PAPER="fr_CA.UTF-8"
LC_NAME="fr_CA.UTF-8"
LC_ADDRESS="fr_CA.UTF-8"
LC_TELEPHONE="fr_CA.UTF-8"
LC_MEASUREMENT="fr_CA.UTF-8"
LC_IDENTIFICATION="fr_CA.UTF-8"
LC_ALL=


Have
export LC_ALL=fr_CA.UTF-8
and then it gives me
Quote:
expr: non-numeric argument
/usr/sbin/background_reshape: line 59: [: -ge: unary operator expected

which did not matter anything , no empty files.

*SIDENOTE : WIZARDWIZARD->LANGUAGESETTING restarted X automatically without asking me to close all Apps or doing it later.
Unfortunately some code got worse, Wary-5.5 is no option for me Evil or Very Mad
Back to top
View user's profile Send_private_message Visit_website 
wjaguar

Joined: 21 Jun 2006
Posts: 257

PostPosted: Tue 26 Mar 2013, 03:44    Post_subject:  

Karl Godt wrote:
Have
export LC_ALL=fr_CA.UTF-8
and then it gives me
expr: non-numeric argument
/usr/sbin/background_reshape: line 59: [: -ge: unary operator expected

This happens because the script expects decimal separator to be ".", and in some locales it is "," instead. And a chain reaction of unexpected behaviour follows.

To prevent these things from happening, it is best to put "export LC_NUMERIC=C" at the beginning of a script, if it's making any kind of floating-point calculations.
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 26 Mar 2013, 10:41    Post_subject:  

wjaguar wrote:
Karl Godt wrote:
Have
export LC_ALL=fr_CA.UTF-8
and then it gives me
expr: non-numeric argument
/usr/sbin/background_reshape: line 59: [: -ge: unary operator expected

This happens because the script expects decimal separator to be ".", and in some locales it is "," instead. And a chain reaction of unexpected behaviour follows.

To prevent these things from happening, it is best to put "export LC_NUMERIC=C" at the beginning of a script, if it's making any kind of floating-point calculations.


Edit, March 30th: 2 paragraphs removed (self-censored).

Luckily the French-from-France Toutou has almost solved the non- fr_FR keyboard problems at start-up. (...)(self-censored)

Regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0935s ][ Queries: 13 (0.0053s) ][ GZIP on ]