Re: [opensuse] Gwenview - Cropping Image Corrupts Result in kde4



On Saturday 08 August 2009 04:50:14 pm David C. Rankin wrote:
On Saturday 08 August 2009 01:11:02 pm Patrick Shanahan wrote:
* David C. Rankin <drankinatty@xxxxxxxxxxxxxxxxxx> [08-08-09 13:36]:

I tried to crop a png image with gwenview, but the resulting cropped image is corrupt. I also filed a bug report about it with kde.org. Can anyone duplicate this? I have included links to the original and cropped image below for test purposes.

The bug report filed is: https://bugs.kde.org/show_bug.cgi?id=203109

maybe you were a little quick-on-the-trigger :^)


My cropped vers of your original:

http://wahoo.no-ip.org/~pat/quicklaunch-zephyr.cropped.png




Patrick,

Thanks for the confirmation. My crop corrupted (twice). I double-check before bugging it. I'm glad you could get the crop to work correctly. I haven't used gwenview much, but I really like the tool. Small, efficient and it has quite a few basic editing capabilities.

I don't know what the issue is with both the failed crops I experienced, but sure as the sun shines, both attempts at a crop I made on the task bar corrupted. However, I took your crop from the toolbar and cropped it again and it worked this time. I'll update the bug concerning the variable nature of the problem. Cropped again below:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/quicklaunch-zephyr.cropped-again.png



Hold On.......

There is an actual bug here in crop corruption, but it is related to the "crop" -> "Save As". Here is the additions I made to the bug report. If you can, see if you can reproduce it Patrick. Strange issue:

<bug report addition>

This is evidently an intermittent problem and may be a bug in qwenview's saving to smb shares or in qwenview's "save as" behavior after cropping. I have asked others to confirm the crop issue and a simple crop and saving to the same file works. However, I can reproduce the bug when I attempt a crop and then a "Save As". The corruption occurs using a "Save As" after a crop.

When the first corruption occurred I had taken a screenshot of the taskbar with ksnapshot and then used "open with" to open gwenview. The crop was performed by choosing "crop" and then grabbing the right-hand bounding box handles and dragging leftward to size the view I wanted and choosing "crop" from the pop-up below the selection. I then chose file "save as" and saved the file to a samba share. I don't know where the corruption was introduced, but I performed it twice to confirm - corrupted both times. I believe the "save as" corruption occurred because the original file was saved in /tmp/kde-david on the local machine and my "Save As" was to a smb share mounted under /mnt

I just took another screenshot of this bug report and cropped it and the smb save bug occurred again. I went through the same procedure outlined above and chose "save as" after the crop and entered "gwenview-bugreport.png" as the file name. To my surprise, the file was NOT saved under the name "gwenview-bugreport.png" but was saved under the name quicklaunch-zephyr-newksnapfull1.png (prior save name) in /tmp/kde-david -- WTF??

After selecting crop, you are presented with the black banner under the toolbar saying:

"Current image modified [Undo] [Redo] [Save][Save All]"

see: http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/gwenview-crop-save-01.png

Since I want to "Save As", I simply used "save as" from the file menu. I don't know whether that it where the bug is, but not saving in the name I specified is certainly not expected behavior.

For example if I now open gwenview-crop-save-01.png and just go to crop the text in the center and save it, then choose "crop", set the bounding box, choose "crop" to complete and then choose "save as" and save as gwenview-crop-save-02.png, the image is completely corrupted. See:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/gwenview-crop-save-02.png

I agree gwenview will correctly crop an image if saving back to the same file. This bug occurs when you crop then "Save As". Further, I don't know if it matters whether the save as "target" is on a smb share, but that was the case here. Let me know if you need more info. At least now we know how to reproduce it so it can be fixed.

</bug report addition>

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Gwenview - Cropping Image Corrupts Result in kde4
    ... I tried to crop a png image with gwenview, but the resulting cropped image is corrupt. ...
    (SuSE)
  • Re: PIL problem
    ... square, starting from the center of the image, but when I try to crop ... the image, it won't crop. ... Here are the relevant code snippets: ... I needed to output the cropped image by getting the cropped image in ...
    (comp.lang.python)
  • Re: PIL problem
    ... square, starting from the center of the image, but when I try to crop ... the image, it won't crop. ... Here are the relevant code snippets: ... I needed to output the cropped image by getting the cropped image in ...
    (comp.lang.python)