async function bufferImageFromURL(imageurl){

    return request({
        url:imageurl,
        encoding: null

    }).catch((err)=>{

        errDict.customError(err);
        errDict.getError(25);
        return null;
    });
}
/**
 * This loads the novel image cover as a buffer for input in PDFkit
 * 
 * @param {String} imageurl This is the image url for the cover image of the novel
 * 
 * @returns The buffer of the image data, else null
 */
This loads the novel image cover as a buffer for input in PDFkit

@param {String} imageurl This is the image url for the cover image of the novel

@returns The buffer of the image data, else null
This loads the novel image cover as a buffer for input in PDFkit @param { String } imageurl This is the image url for the cover image of the novel @returns The buffer of the image data else null
async function bufferImageFromURL(imageurl){
    return request({
        url:imageurl,
        encoding: null
    }).catch((err)=>{
        errDict.customError(err);
        errDict.getError(25);
        return null;
    });
}
async function bufferImageFromURL ( imageurl ) { return request ( { url : imageurl , encoding : null } ) . catch ( ( err ) => { errDict . customError ( err ) ; errDict . getError ( 25 ) ; return null ; } ) ; }
This loads the novel image cover as a buffer for input in PDFkit
This loads the novel image cover as a buffer for input in PDFkit