Can't call method "get_width" on an undefined value at /usr/share/shutter/resources/modules/Shutter/pixbuf/Thumbnail.pm line 75

Bug #340855 reported by Mark Grandi on 2009-03-11
10
Affects Status Importance Assigned to Milestone
Shutter
High
Mario Kemper (Romario)

Bug Description

this happens whenever i try to save an image.

Mark Grandi (markgrandi) wrote :
Vadim Peretokin (vperetokin) wrote :

What version of Ubuntu are you on?

Mark Grandi (markgrandi) wrote :

Intrepid

Mh, i can't reproduce this.
I am a little bit confused because of the empty ''image format" combobox in your screenshot:
http://www.ubuntu-pics.de/bild/10893/shutter_bug1_WKNujJ.png

Why is no image format selected? This would be a reason for this strange behavior.

Kim Cascone (kim-anechoicmedia) wrote :

its a little confusing to have to pick a format especially since the format was already chosen in the prefs
and is reflected in the screen shot
as well as the filename.suffix

suggestion:
why don't you do what GIMP does?:
just let the file suffix (i.e. jpg, png, bmp) in the filename determine the file type
but if I want to CHANGE the file type upon saving the file then I can use the pull down to select a different format

also, changing the Image Format will add the corresponding file type suffix to the filename

for example:
- my prefs are set for default: jpeg
- I have a screen grab called 'foo1.jpeg'
- I select save
- the Image Format pull-down picks up the file suffix in the file path and indicates the file type as: 'jpeg - The JPEG image format'

suggestion 2: why not use the three character file type of 'jpg' instead of 'jpeg'?

Mark Grandi (markgrandi) wrote :

yeah choosing a image format fixes it, but it should at least be something by default (like png)....and i agree that the file extension in the name should dictate what format its saved as, as well as maybe having a prefs option to specify the default image format?

It is already implemented that way.
But it is not working properly on all systems ;-)

Can you please run the attached perl script and post the output here? It will determine the supported mimetypes and file formats. There must be a reason why the corresponding image format is not selected by default.

Changed in shutter:
assignee: nobody → mario-kemper
importance: Undecided → High
status: New → Confirmed

Ah, no need to run the perl script above.
I've managed to reproduce this on one of my virtual machines. There will be a fix in the next days.

Thanks for being patient.

Changed in shutter:
status: Confirmed → In Progress
Changed in shutter:
milestone: none → 0.70
Changed in shutter:
status: In Progress → Fix Committed
Changed in shutter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers