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
10
Affects Status Importance Assigned to Milestone
Shutter
Fix Released
High
Mario Kemper (Romario)

Bug Description

this happens whenever i try to save an image.

Revision history for this message
Mark Grandi (markgrandi) wrote :
Revision history for this message
Vadim Peretokin (vperetokin) wrote :

What version of Ubuntu are you on?

Revision history for this message
Mark Grandi (markgrandi) wrote :

Intrepid

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

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.

Revision history for this message
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'?

Revision history for this message
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?

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

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
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.