Could please have a look so that I can suggest an appropriate fix? https://pharo.fogbugz.com/f/cases/12073/Writing-jpeg-files-to-disk
Usman On Tue, Nov 5, 2013 at 2:36 PM, Camillo Bruni <camillobr...@gmail.com>wrote: > I added you to the PharoInbox, could you commit again? > > On 2013-11-05, at 11:54, Usman Bhatti <usman.bha...@gmail.com> wrote: > > > Here is a slice the corrects the bug. > > I cannot commit to pharo inbox. > > > > Usman > > > > > > On Tue, Nov 5, 2013 at 11:49 AM, Usman Bhatti <usman.bha...@gmail.com> > wrote: > > https://pharo.fogbugz.com/f/cases/12073/Writing-jpeg-files-to-disk > > > > > > On Tue, Nov 5, 2013 at 11:34 AM, Usman Bhatti <usman.bha...@gmail.com> > wrote: > > Hello, > > > > Due to the changes in Pharo 3.0, I cannot write jpeg files on the disk. > This happens because when writing a jpeg file, we delete any precedent > version of the file to be exported. However, now DiskStore>>delete: throws > an exception when the file to be deleted is not present > > > > delete: path > > | pathString encodedPathString | > > > > (self exists: path) > > ifFalse: [ ^ FileDoesNotExist signalWith: path ]. > > > > ... > > > > Hence, we need to fix PluginBasedJPEGReadWriter>>putForm: quality: > progressiveJPEG: onFileNamed: to not delete files not present. > > > > To reproduce the problem: > > Display writeJPEGfileNamed: 'display.jpeg' progressive: true > > > > If confirmed, I'll open a bug report and propose a slice because > correction is quite simple ;) > > > > > > > > > > > > regards, > > Usman > > > > > > > <Graphics-Files-usmanbhatti.48.mcz><SLICE-Issue-12073-Writing-jpeg-files-to-disk-usmanbhatti.1.mcz> > >